-
Notifications
You must be signed in to change notification settings - Fork 54
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
remove logging from message box and create LoggingSender #1833
Conversation
215edc4
to
f2b1ae3
Compare
Robot Results
Passed Tests
|
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.
Approved.
The MessageBox
trait is definitely useless now and can be removed in a follow-up PR.
pub async fn send(&mut self, message: Output) -> Result<(), ChannelError> { | ||
self.log_output(&message); | ||
self.output_sender.send(message).await | ||
} |
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.
One could also impl Sender<Output> for SimpleMessageBox<Input, Output>
.
self.log_output(&message); | ||
log_message_sent("Inotify", &message); |
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.
A bit surprised by this. But that's okay for now as this actor has to be revised in any case.
f2b1ae3
to
7613c99
Compare
7613c99
to
5c567b8
Compare
Proposed changes
Types of changes
Paste Link to the issue
Checklist
cargo fmt
as mentioned in CODING_GUIDELINEScargo clippy
as mentioned in CODING_GUIDELINESFurther comments