Skip to content

Commit 9fb72b9

Browse files
committed
fix linter
1 parent 32bb30e commit 9fb72b9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/networkpolicy/dnsagent.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@ func (n *DomainCache) Run(ctx context.Context) error {
8686
logger.Error(err, "Can not process packet")
8787
return 0
8888
}
89-
defer logger.V(2).Info("Finished syncing packet", "id", *a.PacketID, "duration", time.Since(startTime))
89+
defer func() {
90+
logger.V(2).Info("Finished syncing packet", "id", *a.PacketID, "duration", time.Since(startTime))
91+
}()
9092

9193
// Just print out the payload of the nflog packet
9294
logger.V(4).Info("Evaluating packet", "packet", packet)

0 commit comments

Comments
 (0)