Skip to content

Commit b316476

Browse files
committed
Merge branch 'ETCM-446-connection-limit-ranges' of github.com:input-output-hk/mantis into ETCM-446-connection-limit-ranges
2 parents afa0c46 + 756d31a commit b316476

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/scala/io/iohk/ethereum/network/PeerManagerActor.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ object PeerManagerActor {
542542
val maybeAgeSeconds = stat.firstSeenTimeMillis
543543
.map(currentTimeMillis - _)
544544
.map(_ * 1000)
545-
.filterNot(_ <= 0)
545+
.filter(_ > 0)
546546

547547
// Use the average number of responses per second over the lifetime of the connection
548548
// as an indicator of how fruitful the peer is for us.

0 commit comments

Comments
 (0)