0
mirror of https://github.com/XTLS/Xray-core.git synced 2025-06-12 11:29:36 +03:00

Style: format code by gofumpt (#761)

This commit is contained in:
yuhan6665
2021-10-19 12:57:14 -04:00
committed by GitHub
parent d77be80b40
commit e286cdcaa8
111 changed files with 293 additions and 291 deletions

View File

@ -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 {

View File

@ -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()