1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-09-09 19:32:24 +08:00

dht ctxcloserify

This commit is contained in:
Juan Batiz-Benet
2014-10-25 07:12:01 -07:00
parent 4584bc8d18
commit d79ebe68d2
6 changed files with 42 additions and 31 deletions

View File

@ -205,9 +205,3 @@ func (dht *IpfsDHT) handleAddProvider(p peer.Peer, pmes *pb.Message) (*pb.Messag
return pmes, nil // send back same msg as confirmation.
}
// Halt stops all communications from this peer and shut down
// TODO -- remove this in favor of context
func (dht *IpfsDHT) Halt() {
dht.providers.Halt()
}