Skip to content

Commit

Permalink
feat(SPV-742): fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
arkadiuszos4chain committed May 2, 2024
1 parent a560d91 commit 0439f2f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/transports/p2p/peer/peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion internal/transports/p2p/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0439f2f

Please sign in to comment.