From 897ea8e11eff91742eb868d791f8eaa9cb3d89f5 Mon Sep 17 00:00:00 2001 From: Kitaiti Makoto Date: Wed, 24 Nov 2021 21:49:09 +0900 Subject: [PATCH] Change const name: LOCAL_INSTANCE_USER -> LOCAL_INSTANCE_USERNAME --- plume-models/src/instance.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plume-models/src/instance.rs b/plume-models/src/instance.rs index cabc9b9b..f3f05481 100644 --- a/plume-models/src/instance.rs +++ b/plume-models/src/instance.rs @@ -45,7 +45,7 @@ lazy_static! { static ref LOCAL_INSTANCE: RwLock> = RwLock::new(None); } -const LOCAL_INSTANCE_USER: &str = "__instance__"; +const LOCAL_INSTANCE_USERNAME: &str = "__instance__"; impl Instance { pub fn set_local(self) { @@ -94,10 +94,10 @@ impl Instance { .or_else(|err| match err { NotFound => { let instance = Instance::get_local().expect("Failed to get local instance"); - let email = format!("{}@{}", LOCAL_INSTANCE_USER, &instance.public_domain); + let email = format!("{}@{}", LOCAL_INSTANCE_USERNAME, &instance.public_domain); NewUser::new_local( conn, - LOCAL_INSTANCE_USER.into(), + LOCAL_INSTANCE_USERNAME.into(), instance.public_domain, Role::Instance, "Local instance",