diff --git a/scylla/src/transport/connection.rs b/scylla/src/transport/connection.rs index 26e41ae72..18ea4847d 100644 --- a/scylla/src/transport/connection.rs +++ b/scylla/src/transport/connection.rs @@ -51,6 +51,7 @@ use super::iterator::QueryPager; use super::locator::tablets::{RawTablet, TabletParsingError}; use super::query_result::QueryResult; use super::session::AddressTranslator; +use super::timestamp_generator::TimestampGenerator; use super::topology::{PeerEndpoint, UntranslatedEndpoint, UntranslatedPeer}; use super::NodeAddr; #[cfg(feature = "cloud")] @@ -565,6 +566,7 @@ pub(crate) struct ConnectionConfig { pub(crate) compression: Option, pub(crate) tcp_nodelay: bool, pub(crate) tcp_keepalive_interval: Option, + pub(crate) timestamp_generator: Option>, #[cfg(feature = "ssl")] pub(crate) ssl_config: Option, pub(crate) connect_timeout: std::time::Duration, @@ -590,6 +592,7 @@ impl Default for ConnectionConfig { compression: None, tcp_nodelay: true, tcp_keepalive_interval: None, + timestamp_generator: None, event_sender: None, #[cfg(feature = "ssl")] ssl_config: None, diff --git a/scylla/src/transport/session.rs b/scylla/src/transport/session.rs index 6d098cd29..cc3fa2456 100644 --- a/scylla/src/transport/session.rs +++ b/scylla/src/transport/session.rs @@ -1080,6 +1080,7 @@ where compression: config.compression, tcp_nodelay: config.tcp_nodelay, tcp_keepalive_interval: config.tcp_keepalive_interval, + timestamp_generator: config.timestamp_generator, #[cfg(feature = "ssl")] ssl_config: config.ssl_context.map(SslConfig::new_with_global_context), authenticator: config.authenticator.clone(),