mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-01-19 05:43:51 +01:00
Use Future.successful() when removing peer as there is no underlying async computation (#5394)
This commit is contained in:
parent
9d58c9eb89
commit
2d3e481ce0
@ -267,7 +267,7 @@ case class PeerFinder(
|
||||
}
|
||||
|
||||
def removePeer(peer: Peer): Future[Option[PeerData]] = {
|
||||
Future {
|
||||
Future.successful {
|
||||
logger.debug(s"Removing peer=$peer")
|
||||
_peerData.remove(peer) //peer must be a member of _peerData
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user