Skip to content
This repository has been archived by the owner on Jul 21, 2023. It is now read-only.

fix: make findProviders treat timeout the same as findPeer #35

Merged
merged 1 commit into from
Aug 29, 2018

Conversation

jacobheun
Copy link
Contributor

findPeer currently sets a default timeout if one is not given, this updates findProviders to do the same. If a timeout is not given, the call will immediately timeout and return an ETIMEDOUT error.

The default timeout is set to 1 minute, to match findPeer.

@ghost ghost assigned jacobheun Aug 29, 2018
@ghost ghost added the status/in-progress In progress label Aug 29, 2018
Copy link
Member

@vasco-santos vasco-santos left a comment

Choose a reason for hiding this comment

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

LGTM

@vasco-santos vasco-santos merged commit fcdb01d into master Aug 29, 2018
@ghost ghost removed the status/in-progress In progress label Aug 29, 2018
@vasco-santos vasco-santos deleted the fix/timeout branch August 29, 2018 17:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants