Skip to content

Commit

Permalink
ETCM-446: Only update last prune timestamp if we pruned somebody.
Browse files Browse the repository at this point in the history
  • Loading branch information
aakoshh committed Dec 4, 2020
1 parent 5ed1481 commit 989f989
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ case class ConnectedPeers(
pruningPeers = toPrune.foldLeft(pruningPeers) { case (acc, peer) =>
acc + (peer.id -> peer)
},
lastPruneTimestamp = now
lastPruneTimestamp = if (toPrune.nonEmpty) now else lastPruneTimestamp
)
(toPrune, pruned)
}
Expand Down

0 comments on commit 989f989

Please sign in to comment.