update method name in task loop
This commit is contained in:
parent
4bbcd348e8
commit
56b5609da3
|
@ -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 {}: {}",
|
||||
|
|
Loading…
Reference in New Issue