Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DanG100 committed Jul 13, 2023
1 parent 47a64c9 commit 1eb494e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions dataplane/forwarding/protocol/packet.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import (
"bytes"
"encoding/binary"
"fmt"
"sync"

"github.com/go-logr/logr"
"github.com/go-logr/logr/funcr"
Expand Down Expand Up @@ -75,7 +74,6 @@ type Packet struct {
desc string // describes the packet in human readable form
attributes fwdattribute.Set // set of attributes associated with the packet
start fwdpb.PacketHeaderId // Start header of the packet
loggerMu sync.Mutex
logger logr.Logger
logSync *packetLogger
}
Expand Down Expand Up @@ -210,7 +208,7 @@ type packetLogger struct {

// Init receives optional information about the logr library for LogSink
// implementations that need it.
func (pl packetLogger) Init(info logr.RuntimeInfo) {}
func (pl packetLogger) Init(_ logr.RuntimeInfo) {}

// Enabled tests whether this LogSink is enabled at the specified V-level.
// For example, commandline flags might be used to set the logging
Expand Down

0 comments on commit 1eb494e

Please sign in to comment.