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:
əlemi 2024-09-16 21:11:42 +02:00
parent 7aff141e78
commit 7df85fb13e
Signed by: alemi
GPG key ID: A4895B84D311642C
2 changed files with 2 additions and 2 deletions

View file

@ -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(),

View file

@ -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,