From 743ba71e4b63553944607b894ed8e5e275d30638 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Mon, 15 Jan 2024 12:58:46 -0500 Subject: [PATCH] fix: use PutUInt --- service/p2p.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/service/p2p.go b/service/p2p.go index f197298..872d97b 100644 --- a/service/p2p.go +++ b/service/p2p.go @@ -234,13 +234,13 @@ func (p *P2PImpl) ConnectToNode(connectionUris []*url.URL, retried bool, fromPee p.logger.Error("failed to connect, too many retries", zap.String("node", connectionUri.String()), zap.Error(err)) counter := uint(0) if p.outgoingPeerFailures.Contains(idString) { - tmp := *p.outgoingPeerFailures.GetInt(idString) + tmp := *p.outgoingPeerFailures.GetUInt(idString) counter = uint(tmp) } counter++ - p.outgoingPeerFailures.Put(idString, counter) + p.outgoingPeerFailures.PutUInt(idString, counter) if counter >= p.maxOutgoingPeerFailures {