summaryrefslogtreecommitdiffstats
path: root/modules/sync
diff options
context:
space:
mode:
authorEthan Koenig <etk39@cornell.edu>2017-03-14 20:52:01 -0400
committerLunny Xiao <xiaolunwen@gmail.com>2017-03-15 08:52:01 +0800
commit021904e4e65804baa67b38e193e15aa37a391c60 (patch)
tree5c4f74764048eadd39a51c1b27e9c4937a0d236b /modules/sync
parentec0ae5d50c59315a3c597b1cf24d4c5508c718e5 (diff)
downloadgitea-021904e4e65804baa67b38e193e15aa37a391c60.tar.gz
gitea-021904e4e65804baa67b38e193e15aa37a391c60.zip
Fix typos in models/ and modules/ (#1248)
Diffstat (limited to 'modules/sync')
-rw-r--r--modules/sync/exclusive_pool.go2
-rw-r--r--modules/sync/unique_queue.go2
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))