From d5832cc64cc807436231c0a06eddf5667d38f9c7 Mon Sep 17 00:00:00 2001 From: Mike Rolish Date: Wed, 25 Jun 2025 13:19:52 -0500 Subject: [PATCH] Allow for optional configured authorization_token for relayer --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/agent/services/lazer_exporter.rs | 13 ++++++++++++- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index f2b1658..53c9a32 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3721,7 +3721,7 @@ dependencies = [ [[package]] name = "pyth-agent" -version = "3.0.4" +version = "3.0.5" dependencies = [ "anyhow", "async-trait", diff --git a/Cargo.toml b/Cargo.toml index 5350397..97f2fd4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pyth-agent" -version = "3.0.4" +version = "3.0.5" edition = "2024" [[bin]] diff --git a/src/agent/services/lazer_exporter.rs b/src/agent/services/lazer_exporter.rs index 978cf9c..33e34df 100644 --- a/src/agent/services/lazer_exporter.rs +++ b/src/agent/services/lazer_exporter.rs @@ -68,6 +68,7 @@ pub struct Config { pub history_url: Url, pub relayer_urls: Vec, pub publish_keypair_path: PathBuf, + pub authorization_token: Option, #[serde(with = "humantime_serde", default = "default_publish_interval")] pub publish_interval_duration: Duration, #[serde(with = "humantime_serde", default = "default_symbol_fetch_interval")] @@ -292,13 +293,22 @@ pub fn lazer_exporter(config: Config, state: Arc) -> Vec