-
-
Notifications
You must be signed in to change notification settings - Fork 814
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
Refactor scan() #1413
Refactor scan() #1413
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you very much. Also a clear improvement on code structure!
ed6396d
to
77f68d3
Compare
77f68d3
to
70126ca
Compare
70126ca
to
927ad0c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the update.
// Spawn the sender threads. | ||
self.spawn_senders(walker, tx); | ||
|
||
receiver.join().unwrap() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instead of spawning a separate thread and joining on it here, could we just call self.receive(rx)
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried that originally but the problem is spawn_senders()
is blocking. So we need an extra background thread either for receive()
or spawn_senders()
.
No description provided.