Skip to content

Commit bfa7ec8

Browse files
authored
Merge branch 'main' into feat/preallocate-and-max-buffer-sizes
2 parents 4d02469 + 7e231f4 commit bfa7ec8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/rproxy/src/server/proxy/connection_guard.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ impl ConnectionGuard {
3030
proxy: &'static str,
3131
remote_addr: Option<String>,
3232
local_addr: Option<String>,
33-
metrics: &Arc<Metrics>,
33+
metrics: Arc<Metrics>,
3434
client_connections_count: Arc<AtomicI64>,
3535
) -> Self {
3636
Self {
@@ -98,7 +98,7 @@ impl ConnectionGuard {
9898
proxy,
9999
remote_addr,
100100
local_addr,
101-
&metrics,
101+
metrics.clone(),
102102
client_connections_count.clone(),
103103
));
104104
}

0 commit comments

Comments
 (0)