Merge branch 'router-for-me:main' into main

This commit is contained in:
Luis Pater
2026-02-15 14:49:13 +08:00
committed by GitHub
24 changed files with 352 additions and 86 deletions

View File

@@ -899,8 +899,7 @@ func parseRetryDelay(errorBody []byte) (*time.Duration, error) {
if matches := re.FindStringSubmatch(message); len(matches) > 1 {
seconds, err := strconv.Atoi(matches[1])
if err == nil {
duration := time.Duration(seconds) * time.Second
return &duration, nil
return new(time.Duration(seconds) * time.Second), nil
}
}
}