mirror of
https://github.com/foomo/keel.git
synced 2025-10-16 12:35:34 +00:00
feat: fix lint error
This commit is contained in:
parent
5d801976ad
commit
b29c1c2506
@ -99,7 +99,7 @@ func CircuitBreakerWithMetric(
|
|||||||
}
|
}
|
||||||
|
|
||||||
func CircuitBreakerWithIsSuccessful(
|
func CircuitBreakerWithIsSuccessful(
|
||||||
isSuccessful func(err error, req *http.Request, resp *http.Response) (e error),
|
isSuccessful func(err error, req *http.Request, resp *http.Response) error,
|
||||||
copyReqBody bool,
|
copyReqBody bool,
|
||||||
copyRespBody bool,
|
copyRespBody bool,
|
||||||
) CircuitBreakerOption {
|
) CircuitBreakerOption {
|
||||||
@ -133,7 +133,7 @@ func CircuitBreaker(set *CircuitBreakerSettings, opts ...CircuitBreakerOption) R
|
|||||||
circuitBreaker := gobreaker.NewTwoStepCircuitBreaker(cbrSettings)
|
circuitBreaker := gobreaker.NewTwoStepCircuitBreaker(cbrSettings)
|
||||||
|
|
||||||
return func(l *zap.Logger, next Handler) Handler {
|
return func(l *zap.Logger, next Handler) Handler {
|
||||||
return func(r *http.Request) (resp *http.Response, err error) {
|
return func(r *http.Request) (resp *http.Response, err error) { //nolint:nonamedreturns
|
||||||
if r == nil {
|
if r == nil {
|
||||||
return nil, errors.New("request is nil")
|
return nil, errors.New("request is nil")
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user