Skip to content

Commit 1c0eb13

Browse files
committed
fix: missing TLS feature gates
Adds missing cfg(tls) annotations to code blocks that require it, allowing cargo check --all-targets to pass.
1 parent 1c6fc6d commit 1c0eb13

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/connection.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ mod tests {
620620

621621
async fn connect(
622622
&self,
623-
_tls_config: Option<Arc<rustls::ClientConfig>>,
623+
_tls_config: TlsConfig,
624624
_socks5_proxy: Option<String>,
625625
_max_message_size: usize,
626626
) -> Result<Arc<Self::R>> {

tests/client.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ async fn test_topic_crud() {
7373
// Disabled as currently no TLS integration tests
7474
#[ignore]
7575
#[tokio::test]
76+
#[cfg(feature = "transport-tls")]
7677
async fn test_tls() {
7778
maybe_start_logging();
7879

0 commit comments

Comments
 (0)