File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
crates/aptos-telemetry/src Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -29,8 +29,8 @@ pub(crate) const APTOS_GA_API_SECRET: &str = "ArtslKPTTjeiMi1n-IR39g";
29
29
// See: https://developers.google.com/analytics/devguides/collection/protocol/v1/reference#transport
30
30
pub ( crate ) const GA4_URL : & str = "https://www.google-analytics.com/mp/collect" ;
31
31
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" ;
34
34
35
35
// Frequencies for the various metrics and pushes
36
36
pub ( crate ) const NODE_BUILD_INFO_FREQ_SECS : u64 = 60 * 60 ; // 60 minutes
Original file line number Diff line number Diff line change @@ -136,19 +136,19 @@ async fn spawn_telemetry_service(
136
136
) {
137
137
let telemetry_svc_url = env:: var ( ENV_TELEMETRY_SERVICE_URL ) . unwrap_or_else ( |_| {
138
138
if chain_id == ChainId :: mainnet ( ) {
139
- MAINNET_TELEMETRY_SERVICE_URL . into ( )
139
+ DEFAULT_MAINNET_TELEMETRY_SERVICE_URL . into ( )
140
140
} else {
141
- TELEMETRY_SERVICE_URL . into ( )
141
+ DEFAULT_TELEMETRY_SERVICE_URL . into ( )
142
142
}
143
143
} ) ;
144
144
145
145
let base_url = Url :: parse ( & telemetry_svc_url) . unwrap_or_else ( |err| {
146
146
warn ! (
147
147
"Unable to parse telemetry service URL {}. Make sure {} is unset or is set properly: {}. Defaulting to {}." ,
148
148
telemetry_svc_url,
149
- ENV_TELEMETRY_SERVICE_URL , err, TELEMETRY_SERVICE_URL
149
+ ENV_TELEMETRY_SERVICE_URL , err, DEFAULT_TELEMETRY_SERVICE_URL
150
150
) ;
151
- Url :: parse ( TELEMETRY_SERVICE_URL )
151
+ Url :: parse ( DEFAULT_TELEMETRY_SERVICE_URL )
152
152
. expect ( "unable to parse telemetry service default URL" )
153
153
} ) ;
154
154
You can’t perform that action at this time.
0 commit comments