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

Add peer count data to TimestampData::update trace #66

Merged
merged 2 commits into from
Oct 11, 2019

Conversation

hdevalence
Copy link
Contributor

The trace from updates now looks like

Oct 11 XXX.649 TRACE zebra_network::timestamp_collector: addr=V4(XXXXXX:8233) timestamp=XXXXX.649153588Z data.total=6 data.recent=6

(This might cause a merge conflict with #65 but it should be easy to resolve and this change is conceptually separate)

@hdevalence hdevalence requested a review from a team October 11, 2019 17:29
Copy link
Contributor

@dconnolly dconnolly left a comment

Choose a reason for hiding this comment

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

lgtm ✨

// XXX should these constants be split into protocol also?
use crate::protocol::types::*;

/// We expect to recieve a message from a live peer at least once in this time duration.
/// XXX this needs to be synchronized with the ping transmission times.
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

?addr,
?timestamp,
data.total = self.by_time.len(),
// This would be cleaner if it used "variables" but keeping
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants