Skip to content

Commit a9cfee2

Browse files
committed
Rename await_shutdown to wait_for_shutdown
1 parent ed1ac93 commit a9cfee2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

crates/hotfix/src/initiator.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ impl<M: FixMessage> Initiator<M> {
6363

6464
pub async fn shutdown(self) -> Result<(), Elapsed> {
6565
self.session.shutdown().await;
66-
tokio::time::timeout(Duration::from_secs(5), self.await_shutdown()).await
66+
tokio::time::timeout(Duration::from_secs(5), self.wait_for_shutdown()).await
6767
}
6868

69-
pub async fn await_shutdown(&self) {
69+
pub async fn wait_for_shutdown(&self) {
7070
let mut rx = self.completion_rx.clone();
7171
loop {
7272
if *rx.borrow_and_update() {

0 commit comments

Comments
 (0)