filer: fix where deletion can miss under high concurrency

This commit is contained in:
Chris Lu 2020-03-20 23:39:32 -07:00
parent cbfe31a9a8
commit d3e4a31058

View file

@ -18,7 +18,7 @@ func (q *UnboundedQueue) EnQueue(items ...string) {
q.inboundLock.Lock()
defer q.inboundLock.Unlock()
q.outbound = append(q.outbound, items...)
q.inbound = append(q.inbound, items...)
}