Skip to content

Commit

Permalink
chore: merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
mempirate committed Jan 3, 2024
1 parent 298bfeb commit 13ca179
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 36 deletions.
3 changes: 0 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 0 additions & 13 deletions msg-socket/src/pub/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,7 @@ mod tests {

use futures::StreamExt;
use msg_transport::tcp::{self, Tcp};
<<<<<<< HEAD
use msg_wire::compression::GzipCompressor;
=======
use msg_wire::compression::{GzipCompressor, GzipDecompressor};
>>>>>>> a8e78dad9e9360fd342641ffbad86a2f4ef7faae

use crate::{SubOptions, SubSocket};

Expand Down Expand Up @@ -250,19 +246,10 @@ mod tests {
PubSocket::<Tcp>::new(Tcp::default()).with_compressor(GzipCompressor::new(6));

let mut sub1 =
<<<<<<< HEAD
SubSocket::<Tcp>::new(Tcp::new(tcp::Config::default().blocking_connect(true)));

let mut sub2 =
SubSocket::<Tcp>::new(Tcp::new(tcp::Config::default().blocking_connect(true)));
=======
SubSocket::<Tcp>::new(Tcp::new(tcp::Config::default().blocking_connect(true)))
.with_decompressor(GzipDecompressor::new());

let mut sub2 =
SubSocket::<Tcp>::new(Tcp::new(tcp::Config::default().blocking_connect(true)))
.with_decompressor(GzipDecompressor::new());
>>>>>>> a8e78dad9e9360fd342641ffbad86a2f4ef7faae

pub_socket.bind("0.0.0.0:0".parse().unwrap()).await.unwrap();
let addr = pub_socket.local_addr().unwrap();
Expand Down
4 changes: 0 additions & 4 deletions msg-socket/src/sub/driver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ use super::{
};
use msg_common::unix_micros;
use msg_transport::Transport;
<<<<<<< HEAD
=======
use msg_wire::compression::Decompressor;
>>>>>>> a8e78dad9e9360fd342641ffbad86a2f4ef7faae
use msg_wire::pubsub;

type ConnectionResult<Io, E> = Result<(SocketAddr, Io), E>;
Expand Down
16 changes: 0 additions & 16 deletions msg/examples/pubsub_compression.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@ use tokio_stream::StreamExt;
use tracing::Instrument;

use msg::{
<<<<<<< HEAD
compression::GzipCompressor,
=======
compression::{GzipCompressor, GzipDecompressor},
>>>>>>> a8e78dad9e9360fd342641ffbad86a2f4ef7faae
tcp::{self, Tcp},
PubSocket, SubSocket,
};
Expand All @@ -26,25 +22,13 @@ async fn main() {
let mut sub1 = SubSocket::new(
// TCP transport with blocking connect, usually connection happens in the background.
Tcp::new(tcp::Config::default().blocking_connect(true)),
<<<<<<< HEAD
);
=======
)
// Enable Gzip decompression
.with_decompressor(GzipDecompressor::new());
>>>>>>> a8e78dad9e9360fd342641ffbad86a2f4ef7faae

// Configure the subscribers with options
let mut sub2 = SubSocket::new(
// TCP transport with blocking connect, usually connection happens in the background.
Tcp::new(tcp::Config::default().blocking_connect(true)),
<<<<<<< HEAD
);
=======
)
// Enable Gzip decompression
.with_decompressor(GzipDecompressor::new());
>>>>>>> a8e78dad9e9360fd342641ffbad86a2f4ef7faae

tracing::info!("Setting up the sockets...");
pub_socket
Expand Down

0 comments on commit 13ca179

Please sign in to comment.