Extra comments + derived traits

This commit is contained in:
Jedrzej Stuczynski
2020-02-28 13:03:29 +00:00
parent 1d36f73e89
commit ec93fdbbde
2 changed files with 5 additions and 0 deletions
+2
View File
@@ -17,6 +17,8 @@ pub(crate) enum MetricEvent {
}
#[derive(Debug, Clone)]
// Note: you should NEVER create more than a single instance of this using 'new()'.
// You should always use .clone() to create additional instances
struct MixMetrics {
inner: Arc<Mutex<MixMetricsInner>>,
}