diff options
Diffstat (limited to 'modules/sync')
-rw-r--r-- | modules/sync/exclusive_pool.go | 2 | ||||
-rw-r--r-- | modules/sync/unique_queue.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/sync/exclusive_pool.go b/modules/sync/exclusive_pool.go index 744cc7c996..7c1a8930ce 100644 --- a/modules/sync/exclusive_pool.go +++ b/modules/sync/exclusive_pool.go @@ -39,7 +39,7 @@ func NewExclusivePool() *ExclusivePool { } // CheckIn checks in an instance to the pool and hangs while instance -// with same indentity is using the lock. +// with same identity is using the lock. func (p *ExclusivePool) CheckIn(identity string) { p.lock.Lock() diff --git a/modules/sync/unique_queue.go b/modules/sync/unique_queue.go index 7dcaa165a8..ca7c21ac24 100644 --- a/modules/sync/unique_queue.go +++ b/modules/sync/unique_queue.go @@ -36,7 +36,7 @@ func (q *UniqueQueue) Queue() <-chan string { return q.queue } -// Exist returns true if there is an instance with given indentity +// Exist returns true if there is an instance with given identity // exists in the queue. func (q *UniqueQueue) Exist(id interface{}) bool { return q.table.IsRunning(com.ToStr(id)) |