Fixing golang linters for VGC
Change-Id: I386d232c74ab47e24d92c18800dc144120b920da
diff --git a/internal/pkg/application/dhcpserverhandler.go b/internal/pkg/application/dhcpserverhandler.go
index 947dd34..44cdb8e 100644
--- a/internal/pkg/application/dhcpserverhandler.go
+++ b/internal/pkg/application/dhcpserverhandler.go
@@ -40,7 +40,7 @@
// StartDhcpServerHandler starts go routine periodically(every second) to verify DHCP server reachability.
func StartDhcpServerHandler() {
- // Intialize global dhcp map and ticker as one second
+ // Initialize global dhcp map and ticker as one second
dhcpServerInfo = make(map[dhcpServerTag]dhcpTransactionInfo)
ticker := time.NewTicker(1 * time.Second)
@@ -55,7 +55,6 @@
mux.Lock()
checkDhcpTimeout()
mux.Unlock()
-
}
}
}()
@@ -168,11 +167,11 @@
// dhcpTransactionInfo contains DHCP request response transaction information.
type dhcpTransactionInfo struct {
- timer uint8
+ smac string
pendingRequestCount uint32
receivedResponseCount uint32
previousRequestCount uint32
- smac string
+ timer uint8
}
func newDhcpTransactionInfo(timer uint8, smac string) dhcpTransactionInfo {