fix: 修复提前 break 的逻辑错误

This commit is contained in:
amtoaer
2024-03-27 20:00:49 +08:00
parent 45c6662d88
commit 247248850c
2 changed files with 4 additions and 2 deletions

View File

@@ -25,7 +25,7 @@ pub async fn process_favorite(
pin_mut!(video_stream);
while let Some(videos_info) = video_stream.next().await {
let exist_bvids_pubtimes =
exists_bvids_favtime(&videos_info, fid, connection.as_ref()).await?;
exists_bvids_favtime(&videos_info, favorite_obj.id, connection.as_ref()).await?;
let should_break = videos_info
.iter()
// 出现 bvid 和 fav_time 都相同的记录,说明已经到达了上次处理到的位置