mirror of
https://github.com/anyproto/any-sync.git
synced 2025-06-12 02:30:41 +09:00
Merge pull request #50 from anytypeio/fix-pool-remove-connection
This commit is contained in:
commit
5ec53522fe
1 changed files with 1 additions and 0 deletions
|
@ -67,6 +67,7 @@ func (p *pool) GetOneOf(ctx context.Context, peerIds []string) (peer.Peer, error
|
|||
default:
|
||||
return pr, nil
|
||||
}
|
||||
_, _ = p.cache.Remove(ctx, peerId)
|
||||
}
|
||||
}
|
||||
// shuffle ids for better consistency
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue