diff --git a/rpc/json/types.go b/rpc/json/types.go index 7192c6cfa1..04c7e47b00 100644 --- a/rpc/json/types.go +++ b/rpc/json/types.go @@ -132,12 +132,12 @@ type StrInt int // StrInt64 is an proper int64 or quoted "int64" type StrInt64 int64 -// UnmarshalJSON parses JSON (int or int qouted as string) into StrInt64 +// UnmarshalJSON parses JSON (int or int quoted as string) into StrInt64 func (s *StrInt64) UnmarshalJSON(b []byte) error { return unmarshalStrInt64(b, s) } -// UnmarshalJSON parses JSON (int or int qouted as string) into StrInt +// UnmarshalJSON parses JSON (int or int quoted as string) into StrInt func (s *StrInt) UnmarshalJSON(b []byte) error { var val StrInt64 err := unmarshalStrInt64(b, &val) diff --git a/rpc/server.go b/rpc/server.go index e704a4d094..2e5b54a3e2 100644 --- a/rpc/server.go +++ b/rpc/server.go @@ -56,7 +56,7 @@ func (s *Server) OnStop() { ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second) defer cancel() if err := s.server.Shutdown(ctx); err != nil { - s.Logger.Error("error while shuting down RPC server", "error", err) + s.Logger.Error("error while shutting down RPC server", "error", err) } } diff --git a/store/prefix_test.go b/store/prefix_test.go index 42f354a03a..31a740ad4d 100644 --- a/store/prefix_test.go +++ b/store/prefix_test.go @@ -31,7 +31,7 @@ func TestPrefixKV1(t *testing.T) { val12 := []byte("val12") val22 := []byte("val22") - // set different values in each preffix + // set different values in each prefix err := p1.Put(ctx, key1, val11) require.NoError(err)