summaryrefslogtreecommitdiffstats
path: root/modules/sync/unique_queue.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/sync/unique_queue.go')
-rw-r--r--modules/sync/unique_queue.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/sync/unique_queue.go b/modules/sync/unique_queue.go
index 3f3c1c8661..7dcaa165a8 100644
--- a/modules/sync/unique_queue.go
+++ b/modules/sync/unique_queue.go
@@ -51,7 +51,7 @@ func (q *UniqueQueue) AddFunc(id interface{}, fn func()) {
idStr := com.ToStr(id)
q.table.lock.Lock()
- q.table.pool[idStr] = true
+ q.table.pool[idStr] = struct{}{}
if fn != nil {
fn()
}