1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-07-06 22:35:51 +02:00
Files
go-micro/client/retry.go

11 lines
286 B
Go
Raw Normal View History

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