MCPcopy Index your code
hub / github.com/flant/shell-operator / putHookGroupsMap

Method putHookGroupsMap

pkg/task/queue/task_queue.go:241–248  ·  view source on GitHub ↗
(m map[string]*compactionGroup)

Source from the content-addressed store, hash-verified

239}
240
241func (q *TaskQueue) putHookGroupsMap(m map[string]*compactionGroup) {
242 // Clear the map
243 for k := range m {
244 delete(m, k)
245 }
246
247 hookGroupsMapPool.Put(m)
248}
249
250// MeasureActionTime is a helper to measure execution time of queue's actions
251func (q *TaskQueue) MeasureActionTime(action string) func() {

Callers 1

compactionMethod · 0.95

Calls 1

PutMethod · 0.80

Tested by

no test coverage detected