代码质量优化

This commit is contained in:
ryan
2026-06-09 12:16:30 +08:00
parent f428839602
commit 4ac9857fe8
30 changed files with 199 additions and 149 deletions
+2 -1
View File
@@ -19,6 +19,7 @@ package task
import (
"context"
"errors"
"fmt"
"time"
@@ -155,7 +156,7 @@ func RetryTask(ctx context.Context, id uint64) (string, error) {
}
if !execution.Retryable {
return "", fmt.Errorf(errTaskNotRetryable)
return "", errors.New(errTaskNotRetryable)
}
if execution.RetryCount >= execution.MaxRetry {