Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] Add timeout option for genserver call #38

Merged
merged 1 commit into from
Sep 13, 2020

Conversation

FrancisMurilloDigix
Copy link

@FrancisMurilloDigix FrancisMurilloDigix commented Aug 7, 2019

Add timeout option for genserver call.

Filing on behalf of @roynalnaruto for #37

@hswick hswick merged commit c0a3bbe into hswick:master Sep 13, 2020
@hswick
Copy link
Owner

hswick commented Sep 13, 2020

@FrancisMurilloDigix @roynalnaruto Sorry for the extremely delayed response.

@@ -522,7 +522,7 @@ defmodule ExW3 do
@spec call(atom(), atom(), list()) :: {:ok, any()}
@doc "Use a Contract's method with an eth_call"
def call(contract_name, method_name, args \\ []) do
GenServer.call(ContractManager, {:call, {contract_name, method_name, args}})
GenServer.call(ContractManager, {:call, {contract_name, method_name, args}}, :infinity)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMHO, that's a terrible approach. it should be configurable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants