micro/client/retry.go

11 lines
269 B
Go
Raw Normal View History

2016-11-07 11:40:11 +03:00
package client
import "context"
type RetryFunc func(ctx context.Context, req Request, retryCount int, err error) (bool, error)
2016-11-07 11:40:11 +03:00
// always retry on error
func alwaysRetry(ctx context.Context, req Request, retryCount int, err error) (bool, error) {
return true, err
2016-11-07 11:40:11 +03:00
}