-
Notifications
You must be signed in to change notification settings - Fork 86
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
Tracing improvements #2924
Tracing improvements #2924
Conversation
coot
commented
Feb 4, 2021
- mini-protocols: trace termination message
- tx-submission-inbound: improved logging
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.
@@ -39,8 +40,7 @@ directPipelined (TxSubmissionServerPipelined mserver) | |||
SendMsgReplyTxIds (BlockingReply txids) client' -> do | |||
server' <- serverNext txids | |||
directSender q server' client' | |||
SendMsgDone b -> | |||
return (a, b) | |||
SendMsgDone b -> (,b) <$> a |
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.
Is this change really needed?
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.
Yes, because a :: m a
, while it used to be a :: a
; using monadic action allows to log a message when sending MsgDone
.
bors merge |
Build succeeded: |
2876: DNS subscription refactor for A/AAAA lookup r=coot a=Infinisil While looking into that code I noticed that I could be improved a bit. This includes: - Removing the need for any extra `TMVar`'s and `TVar`'s - Previously only exceptions for the first thread to finish were caught and logged. Now exceptions for both threads are caught - Simplify the code for more readability Other than all thread exceptions now being caught, this is only a refactoring without any functional change. To convince myself of the correctness of this change, I split the changes into smallish commits, which should relatively easily be verifiable for equivalence. 2924: Tracing improvements r=coot a=coot - mini-protocols: trace termination message - tx-submission-inbound: improved logging Co-authored-by: Silvan Mosberger <contact@infinisil.com> Co-authored-by: Marcin Szamotulski <profunctor@pm.me>