Skip to content

Commit 0455dd9

Browse files
committed
document updateContainers internal timeout
1 parent 04431a5 commit 0455dd9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

agent/agentcontainers/api.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,8 @@ func (api *API) updaterLoop() {
293293
case <-api.ctx.Done():
294294
return
295295
case done := <-api.updateTrigger:
296+
// Note that although we pass api.ctx here, updateContainers
297+
// has an internal timeout to prevent long blocking calls.
296298
done <- api.updateContainers(api.ctx)
297299
}
298300
}

0 commit comments

Comments
 (0)