[skip ci] Add comment for popTask (#9592)

Signed-off-by: xige-16 <xi.ge@zilliz.com>
This commit is contained in:
xige-16 2021-10-09 20:19:10 +08:00 committed by GitHub
parent e114492e98
commit b6cc36894b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -96,6 +96,7 @@ func (queue *TaskQueue) addTaskToFront(t task) {
}
}
// PopTask pops a trigger task from task list
func (queue *TaskQueue) PopTask() task {
queue.Lock()
defer queue.Unlock()