git ssb

4+

Dominic / scuttlebot



Commit 99c7f955e26533d822a8fcbc4c19c433a3961737

add replicate.request to manifest

Dominic Tarr committed on 6/1/2017, 3:43:38 AM
Parent: 5653a26d6cfcd9a9cff414d2c291fc24e7a294aa

Files changed

plugins/replicate.mdchanged
plugins/replicate/index.jschanged
plugins/replicate.mdView
@@ -24,4 +24,9 @@
2424 ## upto: source
2525
2626 returns {} of feeds to replicate, with sequences
2727
28+## request: sync
29+
30+request a given feed, either as request(id) to replicate that feed,
31+or request(id, false) to disable replication.
32+
plugins/replicate/index.jsView
@@ -23,13 +23,12 @@
2323 // this is currently performed from the ssb-friends plugin
2424
2525 return replicate
2626 }
27+ else
28+ return {
29+ request: function () {},
30+ changes: function () { return function (abort, cb) { cb(true) } }
31+ }
2732 }
2833 }
2934
30-
31-
32-
33-
34-
35-

Built with git-ssb-web