Skip to content

Commit b335b31

Browse files
committed
SSE: remove needless pass-by-value
Signed-off-by: Lance-Drane <[email protected]>
1 parent fbf22c3 commit b335b31

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

proxy-http-server/src/routes/subscribe.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@ use std::sync::Arc;
1414
use crate::webapp_state::WebApplicationState;
1515
use intersect_ingress_proxy_common::signals::wait_for_os_signal;
1616

17-
#[allow(clippy::needless_pass_by_value)]
1817
fn sse_response(
19-
app_state: Arc<impl WebApplicationState>,
18+
app_state: &Arc<impl WebApplicationState>,
2019
) -> Sse<impl Stream<Item = Result<Event, Infallible>>> {
2120
let mut rx = app_state.get_broadcaster().add_client();
2221

@@ -65,5 +64,5 @@ pub async fn sse_handler(
6564
{
6665
return (StatusCode::UNAUTHORIZED, "unauthorized").into_response();
6766
}
68-
sse_response(app_state).into_response()
67+
sse_response(&app_state).into_response()
6968
}

0 commit comments

Comments
 (0)