File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ type Peer struct {
79
79
quitting bool
80
80
// quit is a channel used to properly handle peer disconnection
81
81
quit chan struct {}
82
- // quitMutex is used to prevents concurrect disconnections
82
+ // quitMutex is used to prevents concurrent disconnections
83
83
quitMutex sync.Mutex
84
84
85
85
// manager is a peer manager
Original file line number Diff line number Diff line change @@ -266,7 +266,7 @@ func (s *server) observeInboundPeers() {
266
266
}
267
267
}
268
268
269
- // usage MUST be preceded by `s.ctx.Wg.Add(1)`
269
+ // usage MUST be preceded by `s.ctx.Wg.Add(1)`.
270
270
func (s * server ) noWaitingSleep (duration time.Duration ) {
271
271
s .ctxWg .Done () // We are sleeping -> no need to wait
272
272
time .Sleep (duration )
You can’t perform that action at this time.
0 commit comments