forked from kevadesu/forgejo
Fix typos in models/ and modules/ (#1248)
This commit is contained in:
parent
ec0ae5d50c
commit
021904e4e6
26 changed files with 63 additions and 63 deletions
|
@ -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()
|
||||
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue