Skip to content

Commit

Permalink
style: reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
gbaranski committed Mar 4, 2023
1 parent b67e157 commit c217006
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ impl ClientConfig {
);
self
}

pub fn reconnect_interval(mut self, reconnect_interval: Duration) -> Self {
self.reconnect_interval = Some(reconnect_interval);
self
Expand Down Expand Up @@ -125,14 +125,14 @@ pub trait ClientExt: Send {
async fn text(&mut self, text: String) -> Result<(), Error>;
async fn binary(&mut self, bytes: Vec<u8>) -> Result<(), Error>;
async fn call(&mut self, params: Self::Params) -> Result<(), Error>;

/// Called when the client successfully connected(or reconnected).
async fn connected(&mut self) -> Result<(), Error> {
Ok(())
}

/// Called when the connection is closed.
///
///
/// For reconnections, use `ClientConfig::reconnect_interval`.
async fn closed(&mut self) -> Result<(), Error> {
Ok(())
Expand Down

0 comments on commit c217006

Please sign in to comment.