mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 05:25:40 +09:00
refactor(push): retire the push service delivery experiment (#3000)
This commit is contained in:
1 parent
2a9e25c788
commit
5b280898c5
83 files changed
+1882
-10066
No files matched your search
@@ -62,8 +62,13 @@ impl RpcClient {
|
||||
}
|
||||
}
|
||||
|
||||
pub async fn rollout_config(&self, method: RpcMethod) -> Result<Value, RpcError> {
|
||||
let data: RolloutConfigData = self.call(method, &json!({"type": method.label()})).await?;
|
||||
pub async fn push_service_delivery_config(&self) -> Result<Value, RpcError> {
|
||||
let data: PushServiceDeliveryConfigData = self
|
||||
.call(
|
||||
RpcMethod::GetPushServiceDeliveryConfig,
|
||||
&json!({"type": "get_push_service_delivery_config"}),
|
||||
)
|
||||
.await?;
|
||||
Ok(data.config)
|
||||
}
|
||||
|
||||
@@ -190,7 +195,7 @@ impl RpcClient {
|
||||
}
|
||||
|
||||
#[derive(Deserialize)]
|
||||
struct RolloutConfigData {
|
||||
struct PushServiceDeliveryConfigData {
|
||||
config: Value,
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user