Skip to content

Commit

Permalink
chore: exported connection module items
Browse files Browse the repository at this point in the history
  • Loading branch information
merklefruit committed Jan 31, 2024
1 parent 73d3791 commit a2c2dc2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
1 change: 1 addition & 0 deletions msg-socket/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ mod req;
mod sub;

mod connection;
pub use connection::*;

use bytes::Bytes;
pub use pubs::{PubError, PubOptions, PubSocket};
Expand Down
7 changes: 2 additions & 5 deletions msg-socket/src/req/driver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,9 @@ use tokio::{
use tokio_util::codec::Framed;
use tracing::{debug, error, trace};

use crate::{
connection::{ConnectionState, ExponentialBackoff},
req::SocketState,
};

use super::{Command, ReqError, ReqOptions};
use crate::{req::SocketState, ConnectionState, ExponentialBackoff};

use msg_transport::Transport;
use msg_wire::{
auth,
Expand Down
7 changes: 4 additions & 3 deletions msg-socket/src/req/socket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ use tokio::sync::{mpsc, oneshot};
use msg_transport::Transport;

use super::{Command, ReqDriver, ReqError, ReqOptions, DEFAULT_BUFFER_SIZE};
use crate::connection::{ConnectionState, ExponentialBackoff};
use crate::ReqMessage;
use crate::{req::stats::SocketStats, req::SocketState};
use crate::{
req::{stats::SocketStats, SocketState},
ConnectionState, ExponentialBackoff, ReqMessage,
};

/// The request socket.
pub struct ReqSocket<T: Transport> {
Expand Down
3 changes: 1 addition & 2 deletions msg-socket/src/sub/driver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,13 @@ use tokio::sync::mpsc::{self, error::TrySendError};
use tokio_util::codec::Framed;
use tracing::{debug, error, info, warn};

use crate::connection::{ConnectionState, ExponentialBackoff};

use super::session::SessionCommand;
use super::{
session::PublisherSession,
stream::{PublisherStream, TopicMessage},
Command, PubMessage, SocketState, SubOptions,
};
use crate::{ConnectionState, ExponentialBackoff};

use msg_common::{channel, task::JoinMap, Channel};
use msg_transport::Transport;
Expand Down

0 comments on commit a2c2dc2

Please sign in to comment.