diff --git a/cmd/beekeeper/cmd/check_peercount.go b/cmd/beekeeper/cmd/check_peercount.go index e490c81da..7c6b41125 100644 --- a/cmd/beekeeper/cmd/check_peercount.go +++ b/cmd/beekeeper/cmd/check_peercount.go @@ -35,7 +35,9 @@ Expected peer count equals: node-count + bootnode-count - 1.`, cmd.Flags().IntP(optionNameBootNodeCount, "b", 1, "bootnode count") cmd.Flags().IntP(optionNameNodeCount, "c", 1, "node count") cmd.Flags().StringP(optionNameNamespace, "n", "", "Kubernetes namespace") - cmd.MarkFlagRequired(optionNameNamespace) + if err := cmd.MarkFlagRequired(optionNameNamespace); err != nil { + panic(err) + } return cmd } diff --git a/pkg/bee/debugapi/errors.go b/pkg/bee/debugapi/errors.go index eca89ea2e..df7b1dd25 100644 --- a/pkg/bee/debugapi/errors.go +++ b/pkg/bee/debugapi/errors.go @@ -37,5 +37,3 @@ var ( ErrInternalServerError = errors.New("internal server error") ErrMaintenance = errors.New("maintenance") ) - -var errInvalidPageNumber = errors.New("invalid page number") diff --git a/pkg/check/peercount.go b/pkg/check/peercount.go index c7237a442..0c23020d2 100644 --- a/pkg/check/peercount.go +++ b/pkg/check/peercount.go @@ -39,9 +39,9 @@ func PeerCount(opts PeerCountOptions) (err error) { } if len(resp.Peers) == expectedPeerCount { - fmt.Println(fmt.Sprintf("Node %d passed. Peers %d/%d.", i, len(resp.Peers), expectedPeerCount)) + fmt.Printf("Node %d passed. Peers %d/%d.\n", i, len(resp.Peers), expectedPeerCount) } else { - fmt.Println(fmt.Sprintf("Node %d failed. Peers %d/%d.", i, len(resp.Peers), expectedPeerCount)) + fmt.Printf("Node %d failed. Peers %d/%d.\n", i, len(resp.Peers), expectedPeerCount) return errPeerCount } }