1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-10 18:00:43 +00:00

Rename RetryStrategy to Strategy as suggested by lint

This commit is contained in:
V2Ray 2015-12-02 09:46:19 +01:00
parent 2038cfa692
commit d45b867f98

View File

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