Skip to content

Commit

Permalink
fix: [#592] halt channel closed after starting HTTP tracker
Browse files Browse the repository at this point in the history
  • Loading branch information
josecelano committed Jan 9, 2024
1 parent a876d8c commit 9f3f949
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/bootstrap/jobs/http_tracker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ async fn start_v1(socket: SocketAddr, tls: Option<RustlsConfig>, tracker: Arc<co
.expect("it should be able to start to the http tracker");

tokio::spawn(async move {
assert!(
!server.state.halt_task.is_closed(),

Check warning on line 63 in src/bootstrap/jobs/http_tracker.rs

View check run for this annotation

Codecov / codecov/patch

src/bootstrap/jobs/http_tracker.rs#L62-L63

Added lines #L62 - L63 were not covered by tests
"Halt channel for HTTP tracker should be open"
);
server
.state
.task
Expand Down

0 comments on commit 9f3f949

Please sign in to comment.