From b6cc36894bfef863166ca2cf234f876cbc922115 Mon Sep 17 00:00:00 2001 From: xige-16 Date: Sat, 9 Oct 2021 20:19:10 +0800 Subject: [PATCH] [skip ci] Add comment for popTask (#9592) Signed-off-by: xige-16 --- internal/querycoord/task_scheduler.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/querycoord/task_scheduler.go b/internal/querycoord/task_scheduler.go index 28748eaf0f..d792649a3d 100644 --- a/internal/querycoord/task_scheduler.go +++ b/internal/querycoord/task_scheduler.go @@ -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()