Skip to content

Commit 3e5d0ac

Browse files
fix(dev): fix unused function warning with websocket source/sink (#24383)
1 parent e6397f3 commit 3e5d0ac

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/common/websocket.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ impl WebSocketConnector {
121121
Ok(ws_stream)
122122
}
123123

124+
#[cfg(feature = "sinks-websocket")]
124125
pub(crate) async fn connect_backoff(&self) -> WebSocketStream<MaybeTlsStream<TcpStream>> {
125126
let mut backoff = ExponentialBackoff::default();
126127

@@ -142,6 +143,7 @@ impl WebSocketConnector {
142143

143144
/// Connects with exponential backoff, applying a timeout to each individual connection attempt.
144145
/// This will retry forever until a connection is established.
146+
#[cfg(feature = "sources-websocket")]
145147
pub(crate) async fn connect_backoff_with_timeout(
146148
&self,
147149
timeout_duration: Duration,

0 commit comments

Comments
 (0)