Skip to content

Commit

Permalink
Fix spelling issues (#396)
Browse files Browse the repository at this point in the history
* fix typo handler.go

* fix json.go

* fix typo server.go

* fix storage_key.go
  • Loading branch information
nnsW3 authored Jul 31, 2024
1 parent 8dae74f commit 9d7be34
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gethrpc/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ func (h *handler) handleResponse(msg *jsonrpcMessage) {
return
}
// For subscription responses, start the subscription if the server
// indicates success. EthSubscribe gets unblocked in either case through
// indicates success. EthSubscribe gets unblocked in either case though
// the op.resp channel.
defer close(op.resp)
if msg.Error != nil {
Expand Down
2 changes: 1 addition & 1 deletion gethrpc/json.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ type subscriptionResult struct {
Result json.RawMessage `json:"result,omitempty"`
}

// A value of this type can a JSON-RPC request, notification, successful response or
// A value of this type can be a JSON-RPC request, notification, successful response or
// error response. Which one it is depends on the fields.
type jsonrpcMessage struct {
Version string `json:"jsonrpc,omitempty"`
Expand Down
2 changes: 1 addition & 1 deletion gethrpc/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const (
// OptionMethodInvocation is an indication that the codec supports RPC method calls
OptionMethodInvocation CodecOption = 1 << iota

// OptionSubscriptions is an indication that the codec suports RPC notifications
// OptionSubscriptions is an indication that the codec supports RPC notifications
OptionSubscriptions = 1 << iota // support pub sub
)

Expand Down
2 changes: 1 addition & 1 deletion types/storage_key.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func CreateStorageKey(meta *Metadata, prefix, method string, args ...[]byte) (St

// From metadata >= v14, there is only one representation of Map,
// which is more alike the old 'NMap': a Map with n keys (n >= 1).
// The old variants are now unified as thus IsMap() is true for all.
// The old variants are now unified thus IsMap() is true for all.
if entryMeta.IsMap() {
hashers, err := entryMeta.Hashers()
if err != nil {
Expand Down

0 comments on commit 9d7be34

Please sign in to comment.