mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-17 13:13:34 -04:00
Rename BaseClient::{new_with_store_config => with_store_config}
This commit is contained in:
@@ -153,7 +153,7 @@ impl BaseClient {
|
||||
///
|
||||
/// * `config` - An optional session if the user already has one from a
|
||||
/// previous login call.
|
||||
pub fn new_with_store_config(config: StoreConfig) -> Self {
|
||||
pub fn with_store_config(config: StoreConfig) -> Self {
|
||||
let store = config.state_store.map(Store::new).unwrap_or_else(Store::open_memory_store);
|
||||
#[cfg(feature = "encryption")]
|
||||
let holder = config.crypto_store.map(CryptoHolder::new).unwrap_or_default();
|
||||
@@ -171,7 +171,7 @@ impl BaseClient {
|
||||
impl BaseClient {
|
||||
/// Create a new default client.
|
||||
pub fn new() -> Self {
|
||||
BaseClient::new_with_store_config(StoreConfig::default())
|
||||
BaseClient::with_store_config(StoreConfig::default())
|
||||
}
|
||||
/// The current client session containing our user id, device id and access
|
||||
/// token.
|
||||
|
||||
@@ -183,7 +183,7 @@ impl Client {
|
||||
Arc::new(client_with_config(&config)?)
|
||||
};
|
||||
|
||||
let base_client = BaseClient::new_with_store_config(config.store_config);
|
||||
let base_client = BaseClient::with_store_config(config.store_config);
|
||||
let session = base_client.session().clone();
|
||||
|
||||
let http_client =
|
||||
|
||||
Reference in New Issue
Block a user