update method name in task loop

This commit is contained in:
glyph 2022-06-13 08:55:17 +01:00
parent 4bbcd348e8
commit 56b5609da3
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ pub async fn spawn(rx: Receiver<Task>, db: Database) {
// db.update_sequence(&peer, latest_sequence)
//}
let root_posts = sbot::get_root_posts(peer_msgs).await;
match db.insert_post_batch(&peer, root_posts) {
match db.add_post_batch(&peer, root_posts) {
Ok(_) => debug!("inserted batch of posts into post tree for {}", &peer),
Err(e) => warn!(
"failed to insert batch of posts into post tree for {}: {}",