mirror of
https://github.com/ipfs/kubo.git
synced 2025-09-09 19:32:24 +08:00
dht ctxcloserify
This commit is contained in:
@ -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()
|
||||
}
|
||||
|
Reference in New Issue
Block a user