This commit is contained in:
JMARyA 2024-05-10 11:59:05 +02:00
parent 985296d366
commit 9d5ec6d1b3
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
4 changed files with 135 additions and 7 deletions

View file

@ -3,6 +3,7 @@ use crate::item::{Item, ItemEntry};
#[macro_export]
macro_rules! collect_results {
($res:expr) => {{
use futures::stream::TryStreamExt;
let mut ret = vec![];
while let Some(doc) = $res.try_next().await.unwrap() {