Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/flant/shell-operator
/ getMonitorIDSlice
Method
getMonitorIDSlice
pkg/task/queue/task_queue.go:228–230 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
226
}
227
228
func
(q *TaskQueue) getMonitorIDSlice() []string {
229
return
*monitorIDSlicePool.Get().(*[]string)
230
}
231
232
func
(q *TaskQueue) putMonitorIDSlice(slice *[]string) {
233
*slice = (*slice)[:0]
// Reset slice
Callers
1
compaction
Method · 0.95
Calls
1
Get
Method · 0.65
Tested by
no test coverage detected