remove changes in main proxy that are now not needed

This commit is contained in:
Stas Kelvich
2023-04-28 02:45:23 +03:00
parent 645e4f6ab9
commit 040f736909
2 changed files with 12 additions and 24 deletions

View File

@@ -1,9 +1,6 @@
///! A group of high-level tests for connection establishing logic and auth.
use super::*;
use crate::config::TlsConfig;
use crate::{auth, sasl, scram};
use async_trait::async_trait;
use rstest::rstest;
use tokio_postgres::config::SslMode;
@@ -136,11 +133,7 @@ async fn dummy_proxy(
auth: impl TestAuth + Send,
) -> anyhow::Result<()> {
let cancel_map = CancelMap::default();
let server_config = match tls {
Some(tls) => Some(tls.config),
None => None,
};
let (mut stream, _params) = handshake(client, server_config, &cancel_map)
let (mut stream, _params) = handshake(client, tls.as_ref(), &cancel_map)
.await?
.context("handshake failed")?;