mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-04-29 16:58:34 +00:00
Style: format code by gofumpt (#761)
This commit is contained in:
parent
d77be80b40
commit
e286cdcaa8
111 changed files with 293 additions and 291 deletions
|
@ -6,9 +6,7 @@ import (
|
|||
"time"
|
||||
)
|
||||
|
||||
var (
|
||||
ErrRetryFailed = newError("all retry attempts failed")
|
||||
)
|
||||
var ErrRetryFailed = newError("all retry attempts failed")
|
||||
|
||||
// Strategy is a way to retry on a specific function.
|
||||
type Strategy interface {
|
||||
|
|
|
@ -9,9 +9,7 @@ import (
|
|||
. "github.com/xtls/xray-core/common/retry"
|
||||
)
|
||||
|
||||
var (
|
||||
errorTestOnly = errors.New("this is a fake error")
|
||||
)
|
||||
var errorTestOnly = errors.New("this is a fake error")
|
||||
|
||||
func TestNoRetry(t *testing.T) {
|
||||
startTime := time.Now().Unix()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue