fixed / suppressed (irrelevant) golangci-lint errors

This commit is contained in:
yusing
2024-12-17 09:28:12 +08:00
parent d82594bf09
commit 4d94d12e9c
22 changed files with 89 additions and 69 deletions

View File

@@ -174,7 +174,9 @@ func (r *HTTPRoute) addToLoadBalancer() {
lbTask.OnCancel("remove lb from routes", func() {
routes.DeleteHTTPRoute(r.LoadBalance.Link)
})
lb.Start(lbTask)
if err := lb.Start(lbTask); err != nil {
panic(err) // should always return nil
}
linked = &HTTPRoute{
ReverseProxyEntry: &entry.ReverseProxyEntry{
Raw: &route.RawEntry{