Skip to content

Commit c6c1619

Browse files
committed
clippy
1 parent 5b942ad commit c6c1619

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,14 @@ All notable changes to this project will be documented in this file.
2222
### Fixed
2323

2424
- Set connection and response timeout for Redis connections ([#85]).
25+
- Only remove queries from the persistence in case they don't send a `nextUri` and are in state `FINISHED` ([#98]).
2526

2627
[#68]: https://github.com/stackabletech/trino-lb/pull/68
2728
[#85]: https://github.com/stackabletech/trino-lb/pull/85
2829
[#86]: https://github.com/stackabletech/trino-lb/pull/86
2930
[#91]: https://github.com/stackabletech/trino-lb/pull/91
3031
[#95]: https://github.com/stackabletech/trino-lb/pull/95
32+
[#98]: https://github.com/stackabletech/trino-lb/pull/98
3133

3234
## [0.5.0] - 2025-03-14
3335

trino-lb/src/http_server/v1/statement.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -458,8 +458,7 @@ async fn handle_query_running_on_trino(
458458
// Just to be safe the query needs to be completed and not contain any nextUri for the client
459459
// to call to, before being considered done. We don't expect any future calls to done queries,
460460
// so we can (hopefully) safely remove them from the persistence.
461-
if trino_query_api_response.is_query_finished() && !trino_query_api_response.next_uri.is_some()
462-
{
461+
if trino_query_api_response.is_query_finished() && trino_query_api_response.next_uri.is_none() {
463462
info!(%query_id, "Query completed, removing it from the persistence");
464463

465464
tokio::try_join!(

0 commit comments

Comments
 (0)