wip: fixing dynamic reloading

This commit is contained in:
Jun Kurihara 2024-07-26 23:25:40 +09:00
commit 8d9f07a848
No known key found for this signature in database
GPG key ID: D992B3E3DE1DED23
3 changed files with 44 additions and 32 deletions

View file

@ -312,23 +312,6 @@ where
}
};
match &self.globals.cancel_token {
Some(cancel_token) => {
select! {
_ = proxy_service.fuse() => {
warn!("Proxy service got down");
}
_ = cancel_token.cancelled().fuse() => {
info!("Proxy service listening on {} receives term signal", self.listening_on);
}
}
}
None => {
proxy_service.await?;
warn!("Proxy service got down");
}
}
Ok(())
proxy_service.await
}
}