Skip to content

Commit

Permalink
minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonwang371 committed Jan 26, 2025
1 parent 48ce888 commit 719c54a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spearlet/spearlet.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ type TaskMetaData struct {
}

var (
tmpMetaData = map[int]TaskMetaData{
tmpMetaData = map[int64]TaskMetaData{
3: {
Id: 3,
Type: task.TaskTypeDocker,
Expand Down Expand Up @@ -412,7 +412,7 @@ func (w *Spearlet) ExecuteTaskNoMeta(funcName string, funcType task.TaskType,
func (w *Spearlet) ExecuteTask(taskId int64, funcType task.TaskType, wait bool,
method string, data string) (string, error) {
// get metadata from taskId
meta, ok := tmpMetaData[int(taskId)]
meta, ok := tmpMetaData[taskId]
if !ok {
return "", fmt.Errorf("error: invalid task id: %d", taskId)
}
Expand Down

0 comments on commit 719c54a

Please sign in to comment.