diff --git a/src/main.rs b/src/main.rs index 229b3bc..7cbc317 100644 --- a/src/main.rs +++ b/src/main.rs @@ -114,7 +114,11 @@ async fn main() -> Result<(), Box> { "1".to_string(), ], ) - .into_stream(), + .into_stream() + .try_filter(|message| { + let not_empty = !message.is_empty(); + async move { not_empty } + }), ) .map_err(|e| Box::new(e) as Box);