From 0439f2f3927b076ec76dc69001cc3b3aa19bb5aa Mon Sep 17 00:00:00 2001 From: Arkadiusz Osowski Date: Thu, 2 May 2024 21:11:07 +0200 Subject: [PATCH] feat(SPV-742): fix linter --- internal/transports/p2p/peer/peer.go | 2 +- internal/transports/p2p/server.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/transports/p2p/peer/peer.go b/internal/transports/p2p/peer/peer.go index a337169c..36d62b89 100644 --- a/internal/transports/p2p/peer/peer.go +++ b/internal/transports/p2p/peer/peer.go @@ -79,7 +79,7 @@ type Peer struct { quitting bool // quit is a channel used to properly handle peer disconnection quit chan struct{} - // quitMutex is used to prevents concurrect disconnections + // quitMutex is used to prevents concurrent disconnections quitMutex sync.Mutex // manager is a peer manager diff --git a/internal/transports/p2p/server.go b/internal/transports/p2p/server.go index b69bcc32..449f6268 100644 --- a/internal/transports/p2p/server.go +++ b/internal/transports/p2p/server.go @@ -266,7 +266,7 @@ func (s *server) observeInboundPeers() { } } -// usage MUST be preceded by `s.ctx.Wg.Add(1)` +// usage MUST be preceded by `s.ctx.Wg.Add(1)`. func (s *server) noWaitingSleep(duration time.Duration) { s.ctxWg.Done() // We are sleeping -> no need to wait time.Sleep(duration)