From ec4190e330db9ad5a6e1db8863b22d88f1469f32 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Fri, 6 Jan 2023 00:18:25 -0500 Subject: [PATCH] Remove old logging --- src/activitypub/db.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/activitypub/db.rs b/src/activitypub/db.rs index e82dce9..1588b41 100644 --- a/src/activitypub/db.rs +++ b/src/activitypub/db.rs @@ -69,12 +69,10 @@ pub async fn add_cached_actor(actor: &ActorExt, pool: &SqlitePool) -> anyhow::Re }); let pub_key_pem = &actor.ext_one.public_key.public_key_pem; if fetch_cached_actor(id, pool).await.is_some() { - println!("IS SOME - UPDATING"); sqlx::query!("update actors set actor_object = ?2, display_name = ?3, inbox = ?4, shared_inbox = ?5, icon_url = ?6, public_key_pem = ?7 where id = ?1", id, actor_json, display_name, inbox, shared_inbox, icon, pub_key_pem) .execute(pool) .await?; } else { - println!("IS NONE - INSERTING"); sqlx::query!("insert into actors (id, actor_object, display_name, inbox, icon_url, public_key_pem) values (?1, ?2, ?3, ?4, ?5, ?6)", id, actor_json, display_name, inbox, icon, pub_key_pem) .execute(pool) .await?;