Skip to content

Commit

Permalink
send -> send_request
Browse files Browse the repository at this point in the history
  • Loading branch information
kurotaky committed May 20, 2023
1 parent 52656a9 commit fcaf5db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/eth/client/ws.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def initialize(host)
#
# @param payload [Hash] the RPC request parameters.
# @return [Integer] Number of bytes sent by this method.
def send(payload)
def send_request(payload)
@ws.send(payload.to_json)
end

Expand Down
2 changes: 1 addition & 1 deletion spec/eth/client_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@
end

sleep 0.001
geth_dev_ws.send(payload)
geth_dev_ws.send_request(payload)
sleep 0.001

expect(received_data["id"]).to eq(payload[:id])
Expand Down

0 comments on commit fcaf5db

Please sign in to comment.