From ce7d138c608b21a87abe64e142887818381c0060 Mon Sep 17 00:00:00 2001 From: ston1th Date: Sun, 15 Nov 2020 18:51:04 +0100 Subject: [PATCH] fix spelling --- Makefile | 2 +- pkg/raft/fsm.go | 2 +- pkg/vip/arp_linux.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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