fix lint (#428)
This commit is contained in:
parent
90eb188c9a
commit
73fa95c057
1 changed files with 3 additions and 3 deletions
|
|
@ -389,7 +389,7 @@ func (s *server) UpstreamAuthFailureNotice(ctx context.Context, req *UpstreamAut
|
||||||
methods = append(methods, m)
|
methods = append(methods, m)
|
||||||
}
|
}
|
||||||
|
|
||||||
s.config.UpstreamAuthFailureCallback(req.Meta, req.Method, fmt.Errorf(req.Error), methods)
|
s.config.UpstreamAuthFailureCallback(req.Meta, req.Method, fmt.Errorf("%v", req.Error), methods)
|
||||||
|
|
||||||
return &UpstreamAuthFailureNoticeResponse{}, nil
|
return &UpstreamAuthFailureNoticeResponse{}, nil
|
||||||
}
|
}
|
||||||
|
|
@ -436,7 +436,7 @@ func (s *server) PipeErrorNotice(ctx context.Context, req *PipeErrorNoticeReques
|
||||||
return nil, status.Errorf(codes.Unimplemented, "method PipeErrorNotice not implemented")
|
return nil, status.Errorf(codes.Unimplemented, "method PipeErrorNotice not implemented")
|
||||||
}
|
}
|
||||||
|
|
||||||
s.config.PipeErrorCallback(req.Meta, fmt.Errorf(req.Error))
|
s.config.PipeErrorCallback(req.Meta, fmt.Errorf("%v", req.Error))
|
||||||
|
|
||||||
return &PipeErrorNoticeResponse{}, nil
|
return &PipeErrorNoticeResponse{}, nil
|
||||||
}
|
}
|
||||||
|
|
@ -446,7 +446,7 @@ func (s *server) PipeCreateErrorNotice(ctx context.Context, req *PipeCreateError
|
||||||
return nil, status.Errorf(codes.Unimplemented, "method PipeCreateErrorNotice not implemented")
|
return nil, status.Errorf(codes.Unimplemented, "method PipeCreateErrorNotice not implemented")
|
||||||
}
|
}
|
||||||
|
|
||||||
s.config.PipeCreateErrorCallback(req.FromAddr, fmt.Errorf(req.Error))
|
s.config.PipeCreateErrorCallback(req.FromAddr, fmt.Errorf("%v", req.Error))
|
||||||
|
|
||||||
return &PipeCreateErrorNoticeResponse{}, nil
|
return &PipeCreateErrorNoticeResponse{}, nil
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue