-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Colin/agents-threaded-event-reader #181
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.
This looks good to me other than the lint failing, what other things need to be done on this PR?
No more async, arc, rwlock needed now.
It was not very clean at that point -- just working. I cleaned it up and it's looking good now. Opening PR now. |
Closes #153 |
I need to set up dispatching so messages aren't consumed on other threads. Working on this now. |
Manager also doesn't need a receiver.
I think this should close it. See the reworked test. |
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.
lgtm!
let writer_base_contract_for_admin = writer.base_contract.clone(); | ||
let admin_handle = thread::spawn(move || { | ||
let mut i = 0; | ||
while let Ok(logs) = reader_for_admin.recv() { |
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.
nice
Attempting to close #153.
Still need to build the functionality of actually awaiting new events. Trying to model this after ethers.