File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ type Port struct {
97
97
98
98
var tr = i18n .Tr
99
99
100
- // Equals return true if the given port has the same address and protocol
100
+ // Equals returns true if the given port has the same address and protocol
101
101
// of the current port.
102
102
func (p * Port ) Equals (o * Port ) bool {
103
103
return p .Address == o .Address && p .Protocol == o .Protocol
Original file line number Diff line number Diff line change @@ -538,7 +538,7 @@ func detectUploadPort(
538
538
return
539
539
}
540
540
if candidate != nil && ev .Type == "remove" && ev .Port .Equals (candidate ) {
541
- log .WithField ("event" , ev ).Trace ("User-specified port has been disconnected, forcing waiting for upload port" )
541
+ log .WithField ("event" , ev ).Trace ("User-specified port has been disconnected, forcing wait for upload port" )
542
542
waitForUploadPort = true
543
543
candidate = nil
544
544
} else {
@@ -565,12 +565,12 @@ func detectUploadPort(
565
565
return
566
566
}
567
567
if candidate != nil && ev .Type == "remove" && candidate .Equals (ev .Port ) {
568
- log .WithField ("event" , ev ).Trace ("Candidate port is no more available" )
568
+ log .WithField ("event" , ev ).Trace ("Candidate port is no longer available" )
569
569
candidate = nil
570
570
if ! waitForUploadPort {
571
571
waitForUploadPort = true
572
572
timeout = time .After (5 * time .Second )
573
- log .Trace ("User-specified port has been disconnected, now waiting for upload port, timeout exteneded by 5 seconds" )
573
+ log .Trace ("User-specified port has been disconnected, now waiting for upload port, timeout extended by 5 seconds" )
574
574
}
575
575
continue
576
576
}
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ package f
17
17
18
18
import "sync"
19
19
20
- // DiscardCh consume all incoming messages from the given channel until its closed.
20
+ // DiscardCh consumes all incoming messages from the given channel until it's closed.
21
21
func DiscardCh [T any ](ch <- chan T ) {
22
22
for range ch {
23
23
}
You can’t perform that action at this time.
0 commit comments