mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
rpc: typo and comments
This commit is contained in:
parent
2c6f5342f9
commit
99d787ec0e
1 changed files with 2 additions and 2 deletions
|
|
@ -93,7 +93,7 @@ func (msg *jsonrpcMessage) isNotification() bool {
|
||||||
return msg.ID == nil && msg.Method != ""
|
return msg.ID == nil && msg.Method != ""
|
||||||
}
|
}
|
||||||
|
|
||||||
// The message is a JSON-RPC 2.0 reponse if (1)it has a valid ID (2) empty in Mehod and Params field.
|
// The message is a JSON-RPC 2.0 response if (1)it has a valid ID (2) empty in Mehod and Params field.
|
||||||
func (msg *jsonrpcMessage) isResponse() bool {
|
func (msg *jsonrpcMessage) isResponse() bool {
|
||||||
return msg.hasValidID() && msg.Method == "" && len(msg.Params) == 0
|
return msg.hasValidID() && msg.Method == "" && len(msg.Params) == 0
|
||||||
}
|
}
|
||||||
|
|
@ -226,7 +226,7 @@ func DialStdIO(ctx context.Context) (*Client, error) {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// newClient creates a new connection to a RPC server.
|
// newClient creates a new connection to an RPC server.
|
||||||
func newClient(initctx context.Context, connectFunc func(context.Context) (net.Conn, error)) (*Client, error) {
|
func newClient(initctx context.Context, connectFunc func(context.Context) (net.Conn, error)) (*Client, error) {
|
||||||
conn, err := connectFunc(initctx)
|
conn, err := connectFunc(initctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue