mirror of
https://github.com/prometheus/prometheus.git
synced 2025-02-02 08:31:11 -08:00
discovery: use a more direct and less error-prone return value (#15347)
Signed-off-by: pinglanlu <pinglanlu@outlook.com>
This commit is contained in:
parent
061400e31b
commit
6a61efcfc3
|
@ -205,9 +205,6 @@ func getEndpointInfoForSystems(
|
||||||
err := rpcclient.Call(
|
err := rpcclient.Call(
|
||||||
"system.monitoring.listEndpoints",
|
"system.monitoring.listEndpoints",
|
||||||
[]interface{}{token, systemIDs}, &endpointInfos)
|
[]interface{}{token, systemIDs}, &endpointInfos)
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
return endpointInfos, err
|
return endpointInfos, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue