work
This commit is contained in:
parent
985296d366
commit
9d5ec6d1b3
4 changed files with 135 additions and 7 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue