Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yjhmelody committed Aug 22, 2024
1 parent 4df1052 commit a8a1651
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion core/src/services/foundationdb/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
}

Expand Down
4 changes: 2 additions & 2 deletions core/src/services/mongodb/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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())
Expand Down
2 changes: 1 addition & 1 deletion core/src/services/sqlite/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ impl Builder for SqliteBuilder {
key_field,
value_field,
})
.with_normalized_root(&root))
.with_normalized_root(root))
}
}

Expand Down
2 changes: 1 addition & 1 deletion core/src/services/surrealdb/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ impl Builder for SurrealdbBuilder {
key_field,
value_field,
})
.with_normalized_root(&root))
.with_normalized_root(root))
}
}

Expand Down

0 comments on commit a8a1651

Please sign in to comment.