Skip to content

Commit

Permalink
Remove relays v1 endpoint
Browse files Browse the repository at this point in the history
Android moved away, so we can safely assume the new endpoint is the intended new version.
  • Loading branch information
rubdos committed Nov 16, 2024
1 parent 516750a commit 00b4adb
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions src/push_service/calling.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,28 +15,8 @@ pub struct TurnServerInfo {
}

impl PushService {
#[deprecated(
note = "Use get_turn_server_info_v2 instead. This method is still used by the Android and iOS clients, and will be kept in as long as that's the case."
)]
pub async fn get_turn_server_info(
&mut self,
) -> Result<TurnServerInfo, ServiceError> {
Ok(self
.request(
Method::GET,
Endpoint::service("/v1/calling/relays"),
HttpAuthOverride::NoOverride,
)?
.send()
.await?
.service_error_for_status()
.await?
.json()
.await?)
}

pub async fn get_turn_server_info_v2(
&mut self,
) -> Result<Vec<TurnServerInfo>, ServiceError> {
#[derive(Debug, Deserialize)]
#[serde(rename_all = "camelCase")]
Expand Down

0 comments on commit 00b4adb

Please sign in to comment.