Skip to content

Commit 4abb1c9

Browse files
committed
changed errl1vh to err
1 parent 6dde355 commit 4abb1c9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

npm/pkg/dataplane/dataplane_windows.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ func (dp *DataPlane) initializeDataPlane() error {
6969

7070
if dp.EnableNPMLite {
7171
filterMapL1VH := map[string]uint16{"State": hcnEndpointStateAttached}
72-
filterL1VH, errL1VH := json.Marshal(filterMapL1VH)
73-
if errL1VH != nil {
74-
return errors.Wrap(errL1VH, "failed to marshal endpoint filter map")
72+
filterL1VH, err := json.Marshal(filterMapL1VH)
73+
if err != nil {
74+
return errors.Wrap(err, "failed to marshal endpoint filter map")
7575
}
7676
dp.endpointQueryL1VH.query.Filter = string(filterL1VH)
7777
}
@@ -357,11 +357,11 @@ func (dp *DataPlane) getLocalPodEndpoints() ([]*hcn.HostComputeEndpoint, error)
357357

358358
if dp.EnableNPMLite {
359359
timer = metrics.StartNewTimer()
360-
endpointsAttached, errL1vh := dp.ioShim.Hns.ListEndpointsQuery(dp.endpointQueryL1VH.query)
360+
endpointsAttached, err := dp.ioShim.Hns.ListEndpointsQuery(dp.endpointQueryL1VH.query)
361361
metrics.RecordListEndpointsLatency(timer)
362-
if errL1vh != nil {
362+
if err != nil {
363363
metrics.IncListEndpointsFailures()
364-
return nil, errors.Wrap(errL1vh, "failed to get local pod endpoints in L1VH")
364+
return nil, errors.Wrap(err, "failed to get local pod endpoints in L1VH")
365365
}
366366
endpoints = append(endpoints, endpointsAttached...)
367367
}

0 commit comments

Comments
 (0)