Skip to content

Commit 94a7991

Browse files
committed
remove unused map (noop)
1 parent 573ad9e commit 94a7991

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

network/manager.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -422,11 +422,9 @@ func (nm *networkManager) UpdateEndpointState(eps []*endpoint) error {
422422
}
423423

424424
ifnameToIPInfoMap := generateCNSIPInfoMap(eps) // key : interface name, value : IPInfo
425-
ifNameToIPInfoCopy := map[string]restserver.IPInfo{}
426425
for key, ipinfo := range ifnameToIPInfoMap {
427426
logger.Info("Update endpoint state", zap.String("key", key), zap.String("hnsEndpointID", ipinfo.HnsEndpointID), zap.String("hnsNetworkID", ipinfo.HnsNetworkID),
428427
zap.String("hostVethName", ipinfo.HostVethName), zap.String("macAddress", ipinfo.MacAddress), zap.String("nicType", string(ipinfo.NICType)))
429-
ifNameToIPInfoCopy[key] = *ipinfo
430428
}
431429
// we assume all endpoints have the same container id
432430
cnsEndpointID := eps[0].ContainerID

0 commit comments

Comments
 (0)