Skip to content

Commit 4f0cf48

Browse files
committed
dialqueue: rename local var for clarity.
1 parent 8bacc6c commit 4f0cf48

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dial_queue.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ type waitingCh struct {
110110
// end up adding fuel to the fire. Since we have no deterministic way to detect this for now, we hard-limit concurrency
111111
// to config.maxParallelism.
112112
func newDialQueue(params *dqParams) (*dialQueue, error) {
113-
sq := &dialQueue{
113+
dq := &dialQueue{
114114
dqParams: params,
115115
nWorkers: params.config.minParallelism,
116116
out: queue.NewChanQueue(params.ctx, queue.NewXORDistancePQ(params.target)),
@@ -121,10 +121,10 @@ func newDialQueue(params *dqParams) (*dialQueue, error) {
121121
}
122122

123123
for i := 0; i < int(params.config.minParallelism); i++ {
124-
go sq.worker()
124+
go dq.worker()
125125
}
126-
go sq.control()
127-
return sq, nil
126+
go dq.control()
127+
return dq, nil
128128
}
129129

130130
func (dq *dialQueue) control() {

0 commit comments

Comments
 (0)