Skip to content

Commit 68da3ba

Browse files
committed
fix: change local url
1 parent fb8ef20 commit 68da3ba

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

crates/aptos-telemetry/src/constants.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ pub(crate) const APTOS_GA_API_SECRET: &str = "ArtslKPTTjeiMi1n-IR39g";
2929
// See: https://developers.google.com/analytics/devguides/collection/protocol/v1/reference#transport
3030
pub(crate) const GA4_URL: &str = "https://www.google-analytics.com/mp/collect";
3131
pub(crate) const HTTPBIN_URL: &str = "https://httpbin.org/ip";
32-
pub(crate) const TELEMETRY_SERVICE_URL: &str = "http://localhost:9464";
33-
pub(crate) const MAINNET_TELEMETRY_SERVICE_URL: &str = "http://localhost:9464";
32+
pub(crate) const DEFAULT_TELEMETRY_SERVICE_URL: &str = "http://localhost:9464";
33+
pub(crate) const DEFAULT_MAINNET_TELEMETRY_SERVICE_URL: &str = "http://localhost:9464";
3434

3535
// Frequencies for the various metrics and pushes
3636
pub(crate) const NODE_BUILD_INFO_FREQ_SECS: u64 = 60 * 60; // 60 minutes

crates/aptos-telemetry/src/service.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,19 +136,19 @@ async fn spawn_telemetry_service(
136136
) {
137137
let telemetry_svc_url = env::var(ENV_TELEMETRY_SERVICE_URL).unwrap_or_else(|_| {
138138
if chain_id == ChainId::mainnet() {
139-
MAINNET_TELEMETRY_SERVICE_URL.into()
139+
DEFAULT_MAINNET_TELEMETRY_SERVICE_URL.into()
140140
} else {
141-
TELEMETRY_SERVICE_URL.into()
141+
DEFAULT_TELEMETRY_SERVICE_URL.into()
142142
}
143143
});
144144

145145
let base_url = Url::parse(&telemetry_svc_url).unwrap_or_else(|err| {
146146
warn!(
147147
"Unable to parse telemetry service URL {}. Make sure {} is unset or is set properly: {}. Defaulting to {}.",
148148
telemetry_svc_url,
149-
ENV_TELEMETRY_SERVICE_URL, err, TELEMETRY_SERVICE_URL
149+
ENV_TELEMETRY_SERVICE_URL, err, DEFAULT_TELEMETRY_SERVICE_URL
150150
);
151-
Url::parse(TELEMETRY_SERVICE_URL)
151+
Url::parse(DEFAULT_TELEMETRY_SERVICE_URL)
152152
.expect("unable to parse telemetry service default URL")
153153
});
154154

0 commit comments

Comments
 (0)