From 85cacf4239178215b2085f46f7b1c0b745703d21 Mon Sep 17 00:00:00 2001 From: Kitaiti Makoto Date: Thu, 5 Jan 2023 02:23:50 +0900 Subject: [PATCH] Format --- plume-models/src/instance.rs | 2 +- plume-models/src/remote_fetch_actor.rs | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/plume-models/src/instance.rs b/plume-models/src/instance.rs index 5f8e09af..3da8cbb8 100644 --- a/plume-models/src/instance.rs +++ b/plume-models/src/instance.rs @@ -9,7 +9,7 @@ use crate::{ use chrono::NaiveDateTime; use diesel::{self, result::Error::NotFound, ExpressionMethods, QueryDsl, RunQueryDsl}; use once_cell::sync::OnceCell; -use plume_common::utils::{md_to_html, iri_percent_encode_seg}; +use plume_common::utils::{iri_percent_encode_seg, md_to_html}; use std::sync::RwLock; #[derive(Clone, Identifiable, Queryable)] diff --git a/plume-models/src/remote_fetch_actor.rs b/plume-models/src/remote_fetch_actor.rs index 365a0180..ea0ecc2d 100644 --- a/plume-models/src/remote_fetch_actor.rs +++ b/plume-models/src/remote_fetch_actor.rs @@ -45,7 +45,10 @@ impl Actor for RemoteFetchActor { RemoteUserFound(user) => match self.conn.get() { Ok(conn) => { let conn = DbConn(conn); - if user.get_instance(&conn).map_or(false, |instance| instance.blocked) { + if user + .get_instance(&conn) + .map_or(false, |instance| instance.blocked) + { return; } // Don't call these functions in parallel