summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorKeuin <[email protected]>2022-09-08 11:23:46 +0800
committerKeuin <[email protected]>2022-09-08 11:23:46 +0800
commitea58d5d3c9f0d4534a9ffd028b9461a75922d54f (patch)
treef70464f773e645f2aaf9c290072b63b96375e562 /common
parentd9c929b8c57b7ec12c32a582b5ce8a0cc986ffba (diff)
Remove unnecessary newline in log text.
Diffstat (limited to 'common')
-rw-r--r--common/retry.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/retry.go b/common/retry.go
index 435d407..1b28e1b 100644
--- a/common/retry.go
+++ b/common/retry.go
@@ -21,7 +21,7 @@ func AutoRetry[T any](
ret, err := supplier()
if err != nil {
if logger != nil {
- logger.Printf("Try %v/%v (sleep %vs): %v\n",
+ logger.Printf("Try %v/%v (sleep %vs): %v",
i, maxRetryTimes, retryInterval, err)
}
timer := time.NewTimer(retryInterval)