We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e9c707 commit 2c26a12Copy full SHA for 2c26a12
apps/hermes/server/src/api/rest/v2/sse.rs
@@ -103,9 +103,7 @@ where
103
let start_time = Instant::now();
104
105
let sse_stream = stream
106
- .take_while(move |_| {
107
- start_time.elapsed() < MAX_CONNECTION_DURATION
108
- })
+ .take_while(move |_| start_time.elapsed() < MAX_CONNECTION_DURATION)
109
.then(move |message| {
110
let state_clone = state.clone(); // Clone again to use inside the async block
111
let price_ids_clone = price_ids.clone(); // Clone again for use inside the async block
0 commit comments