Skip to content

Commit

Permalink
Remove try_flush
Browse files Browse the repository at this point in the history
Signed-off-by: Tomasz Pietrek <[email protected]>
  • Loading branch information
Jarema committed Aug 5, 2023
1 parent e295c94 commit 01282bf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion async-nats/src/jetstream/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use crate::header::{IntoHeaderName, IntoHeaderValue};
use crate::jetstream::account::Account;
use crate::jetstream::publish::PublishAck;
use crate::jetstream::response::Response;
use crate::{header, Client, Command, HeaderMap, HeaderValue, StatusCode};
use crate::{header, Client, HeaderMap, HeaderValue, StatusCode};
use bytes::Bytes;
use futures::future::BoxFuture;
use futures::{Future, StreamExt, TryFutureExt};
Expand Down
4 changes: 0 additions & 4 deletions async-nats/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,6 @@ pub(crate) enum Command {
Flush {
result: oneshot::Sender<Result<(), io::Error>>,
},
TryFlush,
}

/// `ClientOp` represents all actions of `Client`.
Expand Down Expand Up @@ -566,9 +565,6 @@ impl ConnectionHandler {
})?;
}
}
Command::TryFlush => {
self.handle_flush().await?;
}
Command::Subscribe {
sid,
subject,
Expand Down

0 comments on commit 01282bf

Please sign in to comment.