Codebase list golang-github-go-kit-kit / 2d94f01
Tidy formatting of callback comment. rossmcf 7 years ago
1 changed file(s) with 5 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
99 "github.com/go-kit/kit/endpoint"
1010 )
1111
12 // Callback function that indicates the current attempt count and the error encountered.
13 // Should return whether the Retry function should continue trying, and a custom
14 // error message if desired. The error message may be nil, but a true/false
15 // is always expected. In all cases if the error message is supplied, the
16 // current error will be replaced.
12 // Callback is a function that indicates the current attempt count and the error
13 // encountered. Should return whether the Retry function should continue trying,
14 // and a custom error message if desired. The error message may be nil, but a
15 // true/false is always expected. In all cases if the error message is supplied,
16 // thecurrent error will be replaced.
1717 type Callback func(n int, err error) (cont bool, cbErr error)
1818
1919 // Retry wraps a service load balancer and returns an endpoint oriented load