1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-11-24 08:02:32 +02:00
go-micro/client/retry.go

11 lines
286 B
Go
Raw Normal View History

2016-11-07 10:40:11 +02: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 10:40:11 +02:00
// always retry on error
func alwaysRetry(ctx context.Context, req Request, retryCount int, err error) (bool, error) {
return true, err
2016-11-07 10:40:11 +02:00
}