Skip to content
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

TSM: Log with SwapLogging trait #912

Merged
merged 8 commits into from
Jan 2, 2023

Conversation

TheCharlatan
Copy link
Member

@TheCharlatan TheCharlatan commented Dec 30, 2022

Move the SwapLogging trait to the service.rs file. Implement the log prefix string as a combination of optional attributes.

The approach here is not exactly ideal to say the least. Any suggestions to improve it are most welcome.

Move the SwapLogging trait to the service.rs file. Implement the log
prefix string as a combination of optional attributes.
@h4sh3d h4sh3d added this to the v0.8.3 milestone Dec 30, 2022
@TheCharlatan TheCharlatan added the enhancement New feature or request label Dec 30, 2022
src/service.rs Outdated Show resolved Hide resolved
src/farcasterd/trade_state_machine.rs Outdated Show resolved Hide resolved
src/farcasterd/trade_state_machine.rs Outdated Show resolved Hide resolved
match self {
TradeStateMachine::StartTaker => {
attempt_transition_to_taker_connect_or_take_deal(event, runtime)
attempt_transition_to_taker_connect_or_take_deal(event, runtime, log_helper)
Copy link
Member

Choose a reason for hiding this comment

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

I don't see how to improve this while keeping the fns as is. But I'm fine going that direction...

@TheCharlatan TheCharlatan requested a review from h4sh3d December 30, 2022 18:00
@h4sh3d h4sh3d merged commit 7a8b737 into farcaster-project:main Jan 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants