Skip to content

Commit 1ad3685

Browse files
committed
Document compression layers
1 parent c214c1b commit 1ad3685

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • trino-lb/src/http_server

trino-lb/src/http_server/mod.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,10 @@ pub async fn start_http_server(
130130
.route("/ui/index.html", get(ui::index::get_ui_index))
131131
.route("/ui/query.html", get(ui::query::get_ui_query))
132132
.layer(TraceLayer::new_for_http())
133-
// E.g. "/v1/trino-event-listener" get's compressed data from Trino
133+
// The Trino HTTP events (received at `/v1/trino-event-listener`) are compressed by default, so we need to need
134+
// to be able to accept compressed content
134135
.layer(RequestDecompressionLayer::new())
135-
// Trino clients can ask for compressed data
136+
// Trino clients can ask for compressed data, so we should support compressing the response
136137
.layer(CompressionLayer::new())
137138
.with_state(app_state);
138139

0 commit comments

Comments
 (0)