Tidy formatting of callback comment.
rossmcf
7 years ago
9 | 9 | "github.com/go-kit/kit/endpoint" |
10 | 10 | ) |
11 | 11 | |
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. | |
17 | 17 | type Callback func(n int, err error) (cont bool, cbErr error) |
18 | 18 | |
19 | 19 | // Retry wraps a service load balancer and returns an endpoint oriented load |