Skip to content

Commit 43e6db2

Browse files
committed
Make tokio-postgres connection parameters public
We need this to enable parameter forwarding in Neon Proxy. This is less than ideal, but we'll probably revert the patch once a proper fix has been implemented.
1 parent a27a406 commit 43e6db2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tokio-postgres/src/connection.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ enum State {
5050
#[must_use = "futures do nothing unless polled"]
5151
pub struct Connection<S, T> {
5252
stream: Framed<MaybeTlsStream<S, T>, PostgresCodec>,
53-
parameters: HashMap<String, String>,
53+
/// HACK: we need this in the Neon Proxy to forward params.
54+
pub parameters: HashMap<String, String>,
5455
receiver: mpsc::UnboundedReceiver<Request>,
5556
pending_request: Option<RequestMessages>,
5657
pending_responses: VecDeque<BackendMessage>,

0 commit comments

Comments
 (0)