mirror of
https://github.com/neondatabase/neon.git
synced 2026-10-28 22:46:46 +00:00
lints
This commit is contained in:
@@ -107,7 +107,9 @@ pub async fn task_main(
|
||||
let client_addr = io.client_addr();
|
||||
let remote_addr = io.inner.remote_addr();
|
||||
let sni_name = tls.server_name().map(|s| s.to_string());
|
||||
let protocol = tls.alpn_protocol().map(|s| String::from_utf8_lossy(s).into_owned());
|
||||
let protocol = tls
|
||||
.alpn_protocol()
|
||||
.map(|s| String::from_utf8_lossy(s).into_owned());
|
||||
let conn_pool = conn_pool.clone();
|
||||
let ws_connections = ws_connections.clone();
|
||||
let endpoint_rate_limiter = endpoint_rate_limiter.clone();
|
||||
|
||||
@@ -2490,7 +2490,7 @@ class NeonProxy(PgProtocol):
|
||||
) as client:
|
||||
response = await client.post(
|
||||
f"https://{self.domain}:{self.external_http_port}/sql",
|
||||
data=json.dumps({"query": query, "params": args}),
|
||||
json={"query": query, "params": args},
|
||||
headers={
|
||||
"Content-Type": "application/sql",
|
||||
"Neon-Connection-String": connstr,
|
||||
|
||||
Reference in New Issue
Block a user