Skip to content

Commit

Permalink
Merge pull request #886 from neondatabase/funbringer/fix-some-warnings
Browse files Browse the repository at this point in the history
Hide `tokio_postgres::client::SocketConfig` behind "runtime" feature
  • Loading branch information
sfackler committed Apr 16, 2022
2 parents 812dfa7 + cf381ce commit 024794a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tokio-postgres/src/client.rs
@@ -1,5 +1,7 @@
use crate::codec::{BackendMessages, FrontendMessage};
use crate::config::{Host, SslMode};
#[cfg(feature = "runtime")]
use crate::config::Host;
use crate::config::SslMode;
use crate::connection::{Request, RequestMessages};
use crate::copy_out::CopyOutStream;
use crate::query::RowStream;
Expand All @@ -25,6 +27,7 @@ use std::collections::HashMap;
use std::fmt;
use std::sync::Arc;
use std::task::{Context, Poll};
#[cfg(feature = "runtime")]
use std::time::Duration;
use tokio::io::{AsyncRead, AsyncWrite};

Expand Down Expand Up @@ -145,6 +148,7 @@ impl InnerClient {
}
}

#[cfg(feature = "runtime")]
#[derive(Clone)]
pub(crate) struct SocketConfig {
pub host: Host,
Expand Down

0 comments on commit 024794a

Please sign in to comment.