Skip to content
This repository has been archived by the owner on Mar 10, 2020. It is now read-only.

refactor: convert dht API to async/await #1156

Merged
merged 10 commits into from
Nov 14, 2019
Merged

Conversation

alanshaw
Copy link
Contributor

No description provided.

@alanshaw alanshaw changed the title refactor: convert dht.findPeer to async/await refactor: convert dht API to async/await Nov 13, 2019
@alanshaw alanshaw marked this pull request as ready for review November 14, 2019 15:01
})

for await (const message of ndjson(toIterable(res.body))) {
log(message)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we need to log the message?

Here and in all the other DHT related calls?

@alanshaw alanshaw requested a review from achingbrain November 14, 2019 17:24
Copy link
Collaborator

@achingbrain achingbrain left a comment

Choose a reason for hiding this comment

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

image

Mah favourite!

@alanshaw alanshaw merged commit 5110423 into master Nov 14, 2019
@alanshaw alanshaw deleted the refactor/dht-async-await branch November 14, 2019 18:57
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