소스 검색

Rename RetryStrategy to Strategy as suggested by lint

V2Ray 10 년 전
부모
커밋
d45b867f98
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      common/retry/retry.go

+ 2 - 2
common/retry/retry.go

@@ -9,7 +9,7 @@ var (
 	RetryFailed = errors.New("All retry attempts failed.")
 )
 
-type RetryStrategy interface {
+type Strategy interface {
 	On(func() error) error
 }
 
@@ -33,7 +33,7 @@ func (r *retryer) On(method func() error) error {
 	}
 }
 
-func Timed(attempts int, delay int) RetryStrategy {
+func Timed(attempts int, delay int) Strategy {
 	return &retryer{
 		NextDelay: func(attempt int) int {
 			if attempt >= attempts {