-
Notifications
You must be signed in to change notification settings - Fork 4
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 hub stats #19
Add hub stats #19
Conversation
a2537ac
to
692aa43
Compare
692aa43
to
baa7c36
Compare
@@ -47,6 +49,23 @@ impl StatsActor { | |||
} | |||
}); | |||
|
|||
let hub_stats_task = tokio::spawn({ | |||
let hub = self.hub.clone(); | |||
let update_period = Arc::clone(&self.update_period); |
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 there a reason for not calling clone directly ?
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.
there is no difference, that's a more expressive way of saying you are cloning the ARC, not the data, but we can use .clone, no worries!
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.
baa7c36
to
1e8f825
Compare
This PR uses the same metrics from drivers for the hub.