1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-07-02 03:28:25 +08:00

misc(gcr/s) add doc

This commit is contained in:
Brian Tiger Chow
2015-02-02 02:08:14 -08:00
parent d1df4095ea
commit ab81d7cbd1

View File

@ -73,6 +73,9 @@ func (s *Server) handleMessage(
return p.ID, response
case dhtpb.Message_ADD_PROVIDER:
// FIXME(btc): do we want to store these locally? I think the
// storeProvidersToPeerstore behavior is straight from the DHT message
// handler.
storeProvidersToPeerstore(s.peerstore, p, req.GetProviderPeers())
if err := putRoutingProviders(s.routingBackend, util.Key(req.GetKey()), req.GetProviderPeers()); err != nil {