Skip to content

Commit

Permalink
refactor: agent remove prometheus api sync
Browse files Browse the repository at this point in the history
  • Loading branch information
TomatoMr authored and taloric committed Jul 26, 2024
1 parent 82f9196 commit 2176026
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions agent/src/rpc/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ const KUBERNETES_API_SYNC_ENDPOINT: usize = 5;
const GET_KUBERNETES_CLUSTER_ID_ENDPOINT: usize = 6;
const GPID_SYNC_ENDPOINT: usize = 7;
const PLUGIN_ENDPOINT: usize = 8;
const PROMETHEUS_API_SYNC_ENDPOINT: usize = 9;

struct Config {
ips: Vec<String>,
Expand Down Expand Up @@ -462,18 +461,6 @@ impl Session {
);
Ok(data)
}

pub async fn grpc_prometheus_api_sync(
&self,
request: trident::PrometheusApiSyncRequest,
) -> Result<tonic::Response<trident::PrometheusApiSyncResponse>, tonic::Status> {
sync_grpc_call!(
self,
prometheus_api_sync,
request,
PROMETHEUS_API_SYNC_ENDPOINT
)
}
}

struct ServerDispatcher {
Expand Down

0 comments on commit 2176026

Please sign in to comment.