filer: fix where deletion can miss under high concurrency
This commit is contained in:
@@ -18,7 +18,7 @@ func (q *UnboundedQueue) EnQueue(items ...string) {
|
|||||||
q.inboundLock.Lock()
|
q.inboundLock.Lock()
|
||||||
defer q.inboundLock.Unlock()
|
defer q.inboundLock.Unlock()
|
||||||
|
|
||||||
q.outbound = append(q.outbound, items...)
|
q.inbound = append(q.inbound, items...)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user