فهرست منبع

fix(hermes): correct the metrics server env var

Ali Behjati 2 سال پیش
والد
کامیت
6db59ff6d1
4فایلهای تغییر یافته به همراه4 افزوده شده و 4 حذف شده
  1. 1 1
      hermes/.envrc.sample
  2. 1 1
      hermes/Cargo.lock
  3. 1 1
      hermes/Cargo.toml
  4. 1 1
      hermes/src/config/metrics.rs

+ 1 - 1
hermes/.envrc.sample

@@ -1,7 +1,7 @@
 export PYTHNET_HTTP_ADDR=http://pythnet-http-rpc/
 export PYTHNET_WS_ADDR=ws://pythnet-ws-rpc/
 export RPC_LISTEN_ADDR=0.0.0.0:7575
-export METRICS_LISTEN_ADDR=0.0.0.0:7576
+export METRICS_SERVER_LISTEN_ADDR=0.0.0.0:7576
 export BENCHMARKS_ENDPOINT=https://benchmarks.pyth.network
 export WORMHOLE_SPY_RPC_ADDR=http://spy-or-beacon-rpc
 export RUST_LOG=info

+ 1 - 1
hermes/Cargo.lock

@@ -1574,7 +1574,7 @@ checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8"
 
 [[package]]
 name = "hermes"
-version = "0.4.0"
+version = "0.4.1"
 dependencies = [
  "anyhow",
  "async-trait",

+ 1 - 1
hermes/Cargo.toml

@@ -1,6 +1,6 @@
 [package]
 name        = "hermes"
-version     = "0.4.0"
+version     = "0.4.1"
 description = "Hermes is an agent that provides Verified Prices from the Pythnet Pyth Oracle."
 edition     = "2021"
 

+ 1 - 1
hermes/src/config/metrics.rs

@@ -12,6 +12,6 @@ pub struct Options {
     /// Address and port the RPC server will bind to.
     #[arg(long = "metrics-server-listen-addr")]
     #[arg(default_value = DEFAULT_METRICS_SERVER_LISTEN_ADDR)]
-    #[arg(env = "METRICS_LISTEN_ADDR")]
+    #[arg(env = "METRICS_SERVER_LISTEN_ADDR")]
     pub server_listen_addr: SocketAddr,
 }