diff --git a/Makefile b/Makefile index e9a5538..e8eb5b4 100644 --- a/Makefile +++ b/Makefile @@ -39,7 +39,7 @@ golint: $(GOPATH)/bin/golint . misspell: - $(GOPATH)/bin/misspell pkg/* cmd/* Makefile README.md + $(GOPATH)/bin/misspell pkg/* cmd/* Makefile README.md vipman.yaml test: ifeq ($(shell go env GOARCH), $(shell go env GOHOSTARCH)) diff --git a/pkg/raft/fsm.go b/pkg/raft/fsm.go index 33817ee..6e531fb 100644 --- a/pkg/raft/fsm.go +++ b/pkg/raft/fsm.go @@ -41,7 +41,7 @@ func (f *fsm) Apply(l *raft.Log) interface{} { case DELETE: f.applyDelete(c.K) default: - panic(fmt.Sprintf("unrecognized command op: %s", c.Op)) + panic(fmt.Sprintf("unrecognized command op: %d", c.Op)) } return nil } diff --git a/pkg/vip/arp_linux.go b/pkg/vip/arp_linux.go index cd08399..af14d3a 100644 --- a/pkg/vip/arp_linux.go +++ b/pkg/vip/arp_linux.go @@ -1,6 +1,6 @@ // +build linux -// These syscalls are only supported on Linux, so this uses a build directive during compilation. Other OS's will use the arp_unsupported.go and recieve an error +// These syscalls are only supported on Linux, so this uses a build directive during compilation. Other OS's will use the arp_unsupported.go and receive an error package vip