ssbc / ssb-ebt

secure scuttlebutt replication with epidemic-broadcast-trees
MIT License
18 stars 10 forks source link

Expose request and don't assume sbot.replicate is available #30

Closed arj03 closed 4 years ago

arj03 commented 5 years ago

This PR does two things that I think are close enough related to put into one:

The motivation for these changes is that I need them for my ssb-browser project.

dominictarr commented 4 years ago

I think there is a slightly deeper problem here: replicate.request is the interface that is needed by any plugins that have opinions about what feeds to replicate. similar to gossip.add (for peers to replicate with) if we change the module that provides that service, we don't want to update all the modules that use it... because that will interfere with exploring different designs in parallel, or upgrading to new versions of modules while other people are still using the old one.

arj03 commented 4 years ago

Right, one needs to use the replication interface.

I think the coupling is a bit wierd in that the new module depends on the old, also that the description of ssb-replicate is "ssb legacy replication", so it sounds as if it is only legacy. Anyway will close this. Thanks for clearing that up.