File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import (
19
19
)
20
20
21
21
var (
22
- socketsList = map [int ]string {}
22
+ socketsList = map [int ]string {} //nolint:unused
23
23
muSocketsList sync.Mutex
24
24
)
25
25
Original file line number Diff line number Diff line change @@ -123,7 +123,9 @@ func (h *PostRawConfigurationHandlerImpl) Handle(params configuration.PostHAProx
123
123
return configuration .NewPostHAProxyConfigurationCreated ().WithPayload (params .Data )
124
124
}
125
125
if forceReload {
126
- callbackNeeded , reconfigureFunc , err := h .reconfigureRuntime (runtimeAPIsOld )
126
+ var callbackNeeded bool
127
+ var reconfigureFunc func ()
128
+ callbackNeeded , reconfigureFunc , err = h .reconfigureRuntime (runtimeAPIsOld )
127
129
if err != nil {
128
130
e := misc .HandleError (err )
129
131
return configuration .NewPostHAProxyConfigurationDefault (int (* e .Code )).WithPayload (e )
You can’t perform that action at this time.
0 commit comments