Skip to content

Commit f8c1f93

Browse files
committed
fix: expose metrics as Arc to allow cloning
1 parent 2286cb9 commit f8c1f93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/downloader.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ impl Downloader {
436436
}
437437

438438
/// Returns the metrics collected for this downloader.
439-
pub fn metrics(&self) -> &Metrics {
439+
pub fn metrics(&self) -> &Arc<Metrics> {
440440
&self.metrics
441441
}
442442
}

0 commit comments

Comments
 (0)