Skip to content

Commit

Permalink
remove unused (#1771)
Browse files Browse the repository at this point in the history
  • Loading branch information
f1shl3gs committed Jun 3, 2024
1 parent a128ac7 commit e021e5d
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 137 deletions.
3 changes: 0 additions & 3 deletions lib/framework/src/common/mod.rs

This file was deleted.

130 changes: 0 additions & 130 deletions lib/framework/src/common/open.rs

This file was deleted.

2 changes: 0 additions & 2 deletions lib/framework/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

pub mod async_read;
pub mod batch;
mod common;
pub mod config;
pub mod dns;
mod extension;
Expand Down Expand Up @@ -33,7 +32,6 @@ mod utilization;

use std::sync::OnceLock;

pub use common::*;
pub use extension::Extension;
pub use pipeline::Pipeline;
pub use shutdown::*;
Expand Down
3 changes: 1 addition & 2 deletions lib/framework/src/sink/util/tcp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ use crate::sink::util::socket_bytes_sink::{BytesSink, ShutdownCheck};
use crate::sink::VecSinkExt;
use crate::tcp::TcpKeepaliveConfig;
use crate::tls::{MaybeTlsStream, TlsConfig, TlsError};
use crate::{dns, Healthcheck, OpenGauge, Sink, StreamSink};
use crate::{dns, Healthcheck, Sink, StreamSink};

#[derive(Debug, Error)]
enum TcpError {
Expand Down Expand Up @@ -313,7 +313,6 @@ where

while Pin::new(&mut input).peek().await.is_some() {
let mut sink = self.connect().await;
let _open_token = OpenGauge::new();

let result = match sink.send_all_peekable(&mut (&mut input).peekable()).await {
Ok(()) => sink.close().await,
Expand Down

0 comments on commit e021e5d

Please sign in to comment.