mirror of
https://github.com/hexedtech/codemp.git
synced 2024-11-21 23:04:49 +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?
|
||||
.into_inner();
|
||||
|
||||
let ws = Workspace::try_new(
|
||||
let ws = Workspace::connect(
|
||||
workspace.as_ref().to_string(),
|
||||
self.0.user.clone(),
|
||||
self.0.config.clone(),
|
||||
|
|
|
@ -51,7 +51,7 @@ struct WorkspaceInner {
|
|||
}
|
||||
|
||||
impl Workspace {
|
||||
pub(crate) async fn try_new(
|
||||
pub(crate) async fn connect(
|
||||
name: String,
|
||||
user: User,
|
||||
config: crate::api::Config,
|
||||
|
|
Loading…
Reference in a new issue