From 50c3aa9c839b7a9d403250ac4e71a0b4d032bc1c Mon Sep 17 00:00:00 2001 From: moshe-blox Date: Sun, 27 Oct 2024 16:46:40 +0200 Subject: [PATCH] avoid overflow --- network/discovery/dv5_service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/network/discovery/dv5_service.go b/network/discovery/dv5_service.go index 2bc87402fd..a46fa6c490 100644 --- a/network/discovery/dv5_service.go +++ b/network/discovery/dv5_service.go @@ -140,7 +140,7 @@ func (dvs *DiscV5Service) Bootstrap(logger *zap.Logger, handler HandleNewPeer) e // Log every 10th skipped peer. // TODO: remove once we've merged https://github.com/ssvlabs/ssv/pull/1803 const logFrequency = 10 - var skippedPeers = 0 + var skippedPeers uint64 = 0 dvs.discover(dvs.ctx, func(e PeerEvent) { logger := logger.With(