File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import (
1919)
2020
2121var (
22- socketsList = map [int ]string {}
22+ socketsList = map [int ]string {} //nolint:unused
2323 muSocketsList sync.Mutex
2424)
2525
Original file line number Diff line number Diff line change @@ -123,7 +123,9 @@ func (h *PostRawConfigurationHandlerImpl) Handle(params configuration.PostHAProx
123123 return configuration .NewPostHAProxyConfigurationCreated ().WithPayload (params .Data )
124124 }
125125 if forceReload {
126- callbackNeeded , reconfigureFunc , err := h .reconfigureRuntime (runtimeAPIsOld )
126+ var callbackNeeded bool
127+ var reconfigureFunc func ()
128+ callbackNeeded , reconfigureFunc , err = h .reconfigureRuntime (runtimeAPIsOld )
127129 if err != nil {
128130 e := misc .HandleError (err )
129131 return configuration .NewPostHAProxyConfigurationDefault (int (* e .Code )).WithPayload (e )
You can’t perform that action at this time.
0 commit comments