1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-04 12:52:28 +08:00

fix: os.go/ExecCommand make error the last return value

This commit is contained in:
dudaodong
2022-01-17 16:57:38 +08:00
parent 764a6fe107
commit 261370e30d
6 changed files with 12 additions and 8 deletions

View File

@@ -15,7 +15,9 @@ import (
)
const (
DefaultRetryTimes = 5
// DefaultRetryTimes times of retry
DefaultRetryTimes = 5
// DefaultRetryDuration time duration of two retries
DefaultRetryDuration = time.Second * 3
)
@@ -26,7 +28,7 @@ type RetryConfig struct {
retryDuration time.Duration
}
// RetryFn is function that retry executes
// RetryFunc is function that retry executes
type RetryFunc func() error
// Option is for adding retry config