Skip to content

Commit

Permalink
Use EncodeMetric instead of SendSyncEncodeMetric
Browse files Browse the repository at this point in the history
Signed-off-by: Vlad Vasiliu <[email protected]>
  • Loading branch information
vladvasiliu committed Jul 26, 2022
1 parent 5d1424a commit f287a31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ where

impl<'a, M> Collector<'a, M> for Registry<M>
where
M: SendSyncEncodeMetric + 'a,
M: EncodeMetric + 'a,
{
fn collect(&'a self) -> Vec<&'a (Descriptor, M)> {
self.iter().collect()
Expand All @@ -271,7 +271,7 @@ where

impl<'a, M, C> Collector<'a, M> for Vec<&'a C>
where
M: SendSyncEncodeMetric + 'a,
M: EncodeMetric + 'a,
C: Collector<'a, M>,
{
fn collect(&'a self) -> Vec<&'a (Descriptor, M)> {
Expand Down

0 comments on commit f287a31

Please sign in to comment.