fix: try use next instead of try next

This commit is contained in:
Zack Fu Zi Xiang 2024-06-20 14:29:16 +08:00
parent f7fcb66c95
commit 44592e1730
No known key found for this signature in database
1 changed files with 2 additions and 1 deletions

View File

@ -1011,7 +1011,8 @@ async fn post_publish_collabs_handler(
// PublishCollabItem
let mut accumulator = Vec::<PublishCollabItem<serde_json::Value, Vec<u8>>>::new();
while let Some(item) = payload.try_next().await? {
while let Some(item) = payload.next().await {
let item = item?;
let item_len = item.len();
let mut cursor = Cursor::new(item);