1
0
Fork 0
mirror of https://github.com/romanz/electrs.git synced 2025-02-24 15:02:21 +01:00

Remove needless borrow

This commit is contained in:
Roman Zeyde 2021-10-21 18:11:42 +03:00
parent 8cfdcb783b
commit b2555ee891

View file

@ -123,7 +123,7 @@ pub struct Rpc {
impl Rpc {
/// Perform initial index sync (may take a while on first run).
pub fn new(config: &Config) -> Result<Self> {
let tracker = Tracker::new(&config)?;
let tracker = Tracker::new(config)?;
let rpc_duration = tracker.metrics().histogram_vec(
"rpc_duration",
"RPC duration (in seconds)",