Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions rpc/json/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion rpc/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down
2 changes: 1 addition & 1 deletion store/prefix_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down