switch to stdlib context

This commit is contained in:
Asim Aslam
2018-03-03 11:53:52 +00:00
parent 982e6068cf
commit c9b40cb33b
42 changed files with 53 additions and 102 deletions

View File

@@ -1,6 +1,8 @@
package client
import "golang.org/x/net/context"
import (
"context"
)
// note that returning either false or a non-nil error will result in the call not being retried
type RetryFunc func(ctx context.Context, req Request, retryCount int, err error) (bool, error)