Skip to content

Commit

Permalink
feat: optimizing delay tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
ifooth committed Nov 27, 2024
1 parent c6758e0 commit 17b7300
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bcs-common/common/task/brokers/etcd/delay_task.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func makeDelayTask(kv *mvccpb.KeyValue) (*delayTask, error) {
taskKey := fmt.Sprintf("%s/%s", parts[6], parts[7])

// eta-{ms} -> {ms}
etaStr := parts[5][4:]
etaStr := strings.TrimPrefix(parts[5], "eta-")

etaMilli, err := strconv.Atoi(etaStr)
if err != nil {
Expand Down

0 comments on commit 17b7300

Please sign in to comment.