fix(hermes): correct the metrics server env var

This commit is contained in:
Ali Behjati 2023-10-19 12:39:20 +02:00
parent 8075d0704e
commit 6db59ff6d1
4 changed files with 4 additions and 4 deletions

View File

@ -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

2
hermes/Cargo.lock generated
View File

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

View File

@ -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"

View File

@ -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,
}