Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
al8n committed Apr 14, 2024
1 parent bde4b94 commit ae18e3e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 0 additions & 2 deletions core/src/serf/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,6 @@ where
// channel signals that we are cleaned up outside of Serf.
*s = SerfState::Shutdown;
}
tracing::error!("debug: shutdown memberlist");
self.inner.memberlist.shutdown().await?;
self.inner.shutdown_tx.close();

Expand All @@ -598,7 +597,6 @@ where
snap.wait().await;
}

tracing::error!("debug: shutdown serf handles");
loop {
if let Ok(mut handles) = self.inner.handles.try_borrow_mut() {
let mut futs = core::mem::take(&mut *handles);
Expand Down
4 changes: 4 additions & 0 deletions core/src/serf/base/tests/serf/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -988,6 +988,10 @@ pub async fn serf_query_filter<T>(

assert_eq!(acks.len(), 1, "missing acks {acks:?}");
assert_eq!(responses.len(), 1, "missing responses {responses:?}");

for s in serfs.iter() {
s.shutdown().await.unwrap();
}
}

/// Unit test for serf query deduplicate
Expand Down

0 comments on commit ae18e3e

Please sign in to comment.