various: add golangci-lint, fix issues (#7905)
This adds an initial and intentionally minimal configuration for golang-ci, fixes the issues reported, and adds a GitHub Action to check new pull requests against this linter configuration. Signed-off-by: Andrew Dunham <andrew@du.nham.ca> Change-Id: I8f38fbc315836a19a094d0d3e986758b9313f163
This commit is contained in:
@@ -139,9 +139,9 @@ type userspaceEngine struct {
|
||||
// pongCallback is the map of response handlers waiting for disco or TSMP
|
||||
// pong callbacks. The map key is a random slice of bytes.
|
||||
pongCallback map[[8]byte]func(packet.TSMPPongReply)
|
||||
// icmpEchoResponseCallback is the map of reponse handlers waiting for ICMP
|
||||
// icmpEchoResponseCallback is the map of response handlers waiting for ICMP
|
||||
// echo responses. The map key is a random uint32 that is the little endian
|
||||
// value of the ICMP identifer and sequence number concatenated.
|
||||
// value of the ICMP identifier and sequence number concatenated.
|
||||
icmpEchoResponseCallback map[uint32]func()
|
||||
|
||||
// networkLogger logs statistics about network connections.
|
||||
|
||||
Reference in New Issue
Block a user