Skip to content

Commit

Permalink
missed some renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
nddq committed Dec 19, 2023
1 parent 8906b9e commit 26e08f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cns/restserver/ipam.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,9 @@ func (service *HTTPRestService) requestIPConfigsHandler(w http.ResponseWriter, r
}
var ipConfigsResp *cns.IPConfigsResponse

// Check if SWIFTv2 middleware is enabled
// Check if IPConfigsHandlerMiddleware is set
if service.IPConfigsHandlerMiddleware != nil {
// Wrap the handler with the SWIFTv2 middleware
// Wrap the default datapath handlers with the middleware
wrappedHandler := service.IPConfigsHandlerMiddleware.IPConfigsRequestHandlerWrapper(service.requestIPConfigHandlerHelper, service.releaseIPConfigHandlerHelper)
ipConfigsResp, err = wrappedHandler(r.Context(), ipconfigsRequest)
} else {
Expand Down

0 comments on commit 26e08f2

Please sign in to comment.