ipfs / go-graphsync

Initial Implementation Of GraphSync Wire Protocol
Other
100 stars 38 forks source link

Discussion: Add an imperative "SendExtensions" Call to GraphSync top level interface #348

Closed hannahhoward closed 2 years ago

hannahhoward commented 2 years ago

In order to get all data transfer libp2p messages into the protocol, we should add an imperative "SendExtensions" call to the top level interface.

This call would:

rvagg commented 2 years ago

This would just be sugar, right? A fairly straightforward message construction internally that lets the caller skip all the messy bits and just provide requestid and extension data?

hannahhoward commented 2 years ago

Yes with the caveat that it checks against in progress requests and responses to figure out whether to send a request or response.

hannahhoward commented 2 years ago

I also wonder if this should just be called "SendUpdate"