Skip to content

Commit 0439f2f

Browse files
feat(SPV-742): fix linter
1 parent a560d91 commit 0439f2f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/transports/p2p/peer/peer.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ type Peer struct {
7979
quitting bool
8080
// quit is a channel used to properly handle peer disconnection
8181
quit chan struct{}
82-
// quitMutex is used to prevents concurrect disconnections
82+
// quitMutex is used to prevents concurrent disconnections
8383
quitMutex sync.Mutex
8484

8585
// manager is a peer manager

internal/transports/p2p/server.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ func (s *server) observeInboundPeers() {
266266
}
267267
}
268268

269-
// usage MUST be preceded by `s.ctx.Wg.Add(1)`
269+
// usage MUST be preceded by `s.ctx.Wg.Add(1)`.
270270
func (s *server) noWaitingSleep(duration time.Duration) {
271271
s.ctxWg.Done() // We are sleeping -> no need to wait
272272
time.Sleep(duration)

0 commit comments

Comments
 (0)