From c2d27ca815b26943062d7184db062cfb0965be12 Mon Sep 17 00:00:00 2001 From: amigin Date: Tue, 17 Oct 2023 15:02:09 +0300 Subject: [PATCH] Small Improvements --- my-grpc-extensions/src/grpc_server.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/my-grpc-extensions/src/grpc_server.rs b/my-grpc-extensions/src/grpc_server.rs index 29bde82..ca423c9 100644 --- a/my-grpc-extensions/src/grpc_server.rs +++ b/my-grpc-extensions/src/grpc_server.rs @@ -77,7 +77,7 @@ where } pub async fn send_vec_to_stream( - src: Vec, + src: impl Iterator + Send + Sync + 'static, mapping: impl Fn(TSrc) -> TDest + Send + Sync + 'static, #[cfg(feature = "adjust-server-stream")] channel_size: usize, #[cfg(feature = "adjust-server-stream")] send_timeout: Duration, @@ -95,7 +95,7 @@ pub async fn send_vec_to_stream( tonic::Status, > where - TSrc: Send + Sync + 'static, + TSrc: Send + Sync + Debug + 'static, TDest: Send + Sync + Debug + 'static, { #[cfg(not(feature = "adjust-server-stream"))]