git ssb

0+

cel / ssb-issues



Commit 8127f3c7642cecdccfe264896c26a8cade5df1b6

Use pull-live interface for ssb.links

Charles Lehner committed on 7/10/2016, 1:34:19 AM
Parent: 198bcc47ef2f962b2651764b7938ffcc875b4cb3

Files changed

index.jschanged
index.jsView
@@ -86,14 +86,16 @@
8686 function getLinks() {
8787 var now = Date.now()
8888 // compute the result from the past data
8989 pull(
90- ssb.links({dest: id, lt: now, reverse: true, values: true}),
90+ ssb.links({dest: id, reverse: true, values: true,
91+ old: true, live: false, sync: false}),
9192 pull.drain(onOldMsg, onOldEnd)
9293 )
9394 // keep the results up-to-date in the future
9495 pull(
95- ssb.links({dest: id, gte: now, values: true, live: true}),
96+ ssb.links({dest: id, values: true,
97+ old: false, live: true, sync: false}),
9698 pull.drain(onNewMsg, onNewEnd)
9799 )
98100 }
99101

Built with git-ssb-web