gofmt
This commit is contained in:
parent
510897a497
commit
9377cb376d
@ -36,8 +36,8 @@ func (q *requestQueue) Remove(i int) *workerRequest {
|
|||||||
old := *q
|
old := *q
|
||||||
n := len(old)
|
n := len(old)
|
||||||
item := old[i]
|
item := old[i]
|
||||||
old[i] = old[n - 1]
|
old[i] = old[n-1]
|
||||||
old[n - 1] = nil
|
old[n-1] = nil
|
||||||
item.index = -1
|
item.index = -1
|
||||||
*q = old[0 : n-1]
|
*q = old[0 : n-1]
|
||||||
sort.Sort(q)
|
sort.Sort(q)
|
||||||
|
Loading…
Reference in New Issue
Block a user