We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f2434f commit 97dcd8cCopy full SHA for 97dcd8c
aggregator/pkg/server.go
@@ -106,13 +106,13 @@ func (agg *Aggregator) ServerRunning(_ *struct{}, reply *int64) error {
106
return nil
107
}
108
109
-func (agg *Aggregator) GetTaskIndex(batchIdentifierHash [32]byte) (uint32, error) {
+func GetTaskIndexFunc(agg *Aggregator, batchIdentifierHash [32]byte) func() (uint32, error) {
110
getTaskIndex_func := func() (uint32, error) {
111
agg.taskMutex.Lock()
112
taskIndex, ok := agg.batchesIdxByIdentifierHash[batchIdentifierHash]
113
agg.taskMutex.Unlock()
114
if !ok {
115
- return taskIndex, fmt.Errorf("Task not found in the internal map")
+ return taskIndex, fmt.Errorf("task not found in the internal map")
116
} else {
117
return taskIndex, nil
118
0 commit comments