Merge pull request #50 from anytypeio/fix-pool-remove-connection

This commit is contained in:
Mikhail Rakhmanov 2023-03-13 17:32:34 +01:00 committed by GitHub
commit 5ec53522fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,6 +67,7 @@ func (p *pool) GetOneOf(ctx context.Context, peerIds []string) (peer.Peer, error
default: default:
return pr, nil return pr, nil
} }
_, _ = p.cache.Remove(ctx, peerId)
} }
} }
// shuffle ids for better consistency // shuffle ids for better consistency