From a8a165130d61cbc25d067dd7201f66c4428dba0c Mon Sep 17 00:00:00 2001 From: yjhmelody Date: Thu, 22 Aug 2024 18:40:36 +0800 Subject: [PATCH] fix --- core/src/services/foundationdb/backend.rs | 2 +- core/src/services/mongodb/backend.rs | 4 ++-- core/src/services/sqlite/backend.rs | 2 +- core/src/services/surrealdb/backend.rs | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/src/services/foundationdb/backend.rs b/core/src/services/foundationdb/backend.rs index 55dcb81841e1..553b6a06087d 100644 --- a/core/src/services/foundationdb/backend.rs +++ b/core/src/services/foundationdb/backend.rs @@ -113,7 +113,7 @@ impl Builder for FoundationdbBuilder { .as_str(), ); - Ok(FoundationdbBackend::new(Adapter { db, _network }).with_normalized_root(&root)) + Ok(FoundationdbBackend::new(Adapter { db, _network }).with_normalized_root(root)) } } diff --git a/core/src/services/mongodb/backend.rs b/core/src/services/mongodb/backend.rs index 88bef6ce9928..8c7cb893c157 100644 --- a/core/src/services/mongodb/backend.rs +++ b/core/src/services/mongodb/backend.rs @@ -27,7 +27,7 @@ use serde::Serialize; use tokio::sync::OnceCell; use crate::raw::adapters::kv; -use crate::raw::Access; +use crate::raw::*; use crate::*; /// Config for Mongodb service support. @@ -199,7 +199,7 @@ impl Builder for MongodbBuilder { None => "value".to_string(), }; let root = normalize_root( - config + self.config .root .clone() .unwrap_or_else(|| "/".to_string()) diff --git a/core/src/services/sqlite/backend.rs b/core/src/services/sqlite/backend.rs index eb2442d4a7c1..4e9538509cb4 100644 --- a/core/src/services/sqlite/backend.rs +++ b/core/src/services/sqlite/backend.rs @@ -207,7 +207,7 @@ impl Builder for SqliteBuilder { key_field, value_field, }) - .with_normalized_root(&root)) + .with_normalized_root(root)) } } diff --git a/core/src/services/surrealdb/backend.rs b/core/src/services/surrealdb/backend.rs index 9b0742e34168..b1129b40366e 100644 --- a/core/src/services/surrealdb/backend.rs +++ b/core/src/services/surrealdb/backend.rs @@ -254,7 +254,7 @@ impl Builder for SurrealdbBuilder { key_field, value_field, }) - .with_normalized_root(&root)) + .with_normalized_root(root)) } }