dht: save tokens from get_peers for announce
TODO: implement announce_peer
This commit is contained in:
@@ -63,7 +63,8 @@ func (dp *dialPool) stop() {
|
||||
|
||||
func (dp *dialPool) connectLoop(ctx context.Context) {
|
||||
dhtCtx, cancel := context.WithTimeout(ctx, dhtTimeout)
|
||||
addrs, err := dp.dht.GetPeers(dhtCtx, dp.infoHash)
|
||||
// TODO: handle tokens
|
||||
addrs, _, err := dp.dht.GetPeers(dhtCtx, dp.infoHash)
|
||||
cancel()
|
||||
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user