refactor(sdk): Make base_client field of Client private

This commit is contained in:
Jonas Platte
2022-09-02 16:23:53 +02:00
committed by Jonas Platte
parent b769827313
commit 08760bd4c0
2 changed files with 2 additions and 2 deletions

View File

@@ -145,7 +145,7 @@ pub(crate) struct ClientInner {
/// The underlying HTTP client.
http_client: HttpClient,
/// User session data.
pub(crate) base_client: BaseClient,
base_client: BaseClient,
/// The Matrix versions the server supports (well-known ones only)
server_versions: OnceCell<Box<[MatrixVersion]>>,
/// Locks making sure we only have one group session sharing request in

View File

@@ -904,7 +904,7 @@ mod tests {
)
.build_sync_response();
client.inner.base_client.receive_sync_response(response).await.unwrap();
client.base_client().receive_sync_response(response).await.unwrap();
let room = client.get_joined_room(room_id).expect("Room should exist");
assert!(room.is_encrypted());