diff --git a/Cargo.lock b/Cargo.lock index 7dea3828..bdbd0ce8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2774,7 +2774,7 @@ version = "0.8.0" [[package]] name = "volo-thrift" -version = "0.8.0" +version = "0.8.1" dependencies = [ "anyhow", "bytes", diff --git a/volo-thrift/Cargo.toml b/volo-thrift/Cargo.toml index 54fe18bc..a402c62e 100644 --- a/volo-thrift/Cargo.toml +++ b/volo-thrift/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "volo-thrift" -version = "0.8.0" +version = "0.8.1" edition.workspace = true homepage.workspace = true repository.workspace = true diff --git a/volo-thrift/src/server.rs b/volo-thrift/src/server.rs index 44a5d1d7..7068e4f9 100644 --- a/volo-thrift/src/server.rs +++ b/volo-thrift/src/server.rs @@ -43,7 +43,7 @@ pub struct Server { #[cfg(feature = "multiplex")] multiplex: bool, span_provider: SP, - shutdown_hooks: Vec BoxFuture<'static, ()>>>, + shutdown_hooks: Vec BoxFuture<'static, ()> + Send>>, _marker: PhantomData, } @@ -81,7 +81,7 @@ impl Server { /// in reverse order of registration. pub fn register_shutdown_hook( mut self, - hook: impl FnOnce() -> BoxFuture<'static, ()> + 'static, + hook: impl FnOnce() -> BoxFuture<'static, ()> + 'static + Send, ) -> Self { self.shutdown_hooks.push(Box::new(hook)); self