Skip to content

Commit 90e3aba

Browse files
committed
Fix for updated lint
1 parent 2158144 commit 90e3aba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/network/node/node.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ func (node *OsdnNode) reattachPods(existingPodSandboxes map[string]*kruntimeapi.
381381
return err
382382
}
383383
start := time.Now()
384-
defer klog.V(2).Infof("reattachPods took %v", time.Since(start))
384+
defer func() { klog.V(2).Infof("reattachPods took %v", time.Since(start)) }()
385385
node.podManager.setReattachPodsCache(pods)
386386
for sandboxID, podInfo := range existingOFPodNetworks {
387387
sandbox, ok := existingPodSandboxes[sandboxID]

0 commit comments

Comments
 (0)