Send crash reports to Slack automatically

This commit is contained in:
Conrad Irwin 2024-01-17 19:41:02 -07:00
parent cf5dc099fb
commit 680929081d
11 changed files with 324 additions and 74 deletions

View file

@ -969,6 +969,16 @@ impl Client {
Url::parse(&collab_url).context("invalid rpc url")
}
// todo: this should probably be cached (And/or done better)
pub async fn get_collab_server_url(
http: Arc<dyn HttpClient>,
release_channel: Option<ReleaseChannel>,
) -> Result<Url> {
let mut url = Self::get_rpc_url(http, release_channel).await?;
url.set_path("");
Ok(url)
}
fn establish_websocket_connection(
self: &Arc<Self>,
credentials: &Credentials,