Skip to content
This repository has been archived by the owner on Dec 18, 2023. It is now read-only.

Commit

Permalink
Fixed issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jeluard committed Feb 23, 2021
1 parent 9019024 commit 101b77b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/src/kubernetes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ impl Engine {
delete_config_map_value(client, &self.env.namespace, USERS_CONFIG_MAP, id.as_str()).await
}

pub async fn get_session(self, id: &str) -> Result<Option<Session>, String> {
pub async fn get_session(&self, id: &str) -> Result<Option<Session>, String> {
let config = config().await?;
let client = Client::try_from(config).map_err(error_to_string)?;
let pod_api: Api<Pod> = Api::namespaced(client, &self.env.namespace);
Expand Down
2 changes: 1 addition & 1 deletion backend/src/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ impl Manager {
}

pub fn list_sessions(&self) -> Result<BTreeMap<String, Session>, String> {
new_runtime()?.block_on(self.clone().engine.list_sessions())
new_runtime()?.block_on(self.engine.list_sessions())
}

pub fn create_session(
Expand Down

0 comments on commit 101b77b

Please sign in to comment.