mirror of
https://github.com/hexedtech/codemp.git
synced 2024-11-22 07:14:50 +01:00
chore: rename Workspace::try_new -> connect
more appropriate: we pass a ton of parameters and a new connection is established. try_new was too generic
This commit is contained in:
parent
7aff141e78
commit
7df85fb13e
2 changed files with 2 additions and 2 deletions
|
@ -126,7 +126,7 @@ impl Client {
|
||||||
.await?
|
.await?
|
||||||
.into_inner();
|
.into_inner();
|
||||||
|
|
||||||
let ws = Workspace::try_new(
|
let ws = Workspace::connect(
|
||||||
workspace.as_ref().to_string(),
|
workspace.as_ref().to_string(),
|
||||||
self.0.user.clone(),
|
self.0.user.clone(),
|
||||||
self.0.config.clone(),
|
self.0.config.clone(),
|
||||||
|
|
|
@ -51,7 +51,7 @@ struct WorkspaceInner {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Workspace {
|
impl Workspace {
|
||||||
pub(crate) async fn try_new(
|
pub(crate) async fn connect(
|
||||||
name: String,
|
name: String,
|
||||||
user: User,
|
user: User,
|
||||||
config: crate::api::Config,
|
config: crate::api::Config,
|
||||||
|
|
Loading…
Reference in a new issue