diff --git a/gethrpc/handler.go b/gethrpc/handler.go index ad998de38..eb1880715 100644 --- a/gethrpc/handler.go +++ b/gethrpc/handler.go @@ -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 { diff --git a/gethrpc/json.go b/gethrpc/json.go index 94c6012d4..e991363a2 100644 --- a/gethrpc/json.go +++ b/gethrpc/json.go @@ -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"` diff --git a/gethrpc/server.go b/gethrpc/server.go index 5a92847f2..a6b3604ed 100644 --- a/gethrpc/server.go +++ b/gethrpc/server.go @@ -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 ) diff --git a/types/storage_key.go b/types/storage_key.go index c404656be..b9540914c 100644 --- a/types/storage_key.go +++ b/types/storage_key.go @@ -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 {