Skip to content

Commit 788e185

Browse files
committed
fix(horizon): Extra safety measure to ensure horizon is disabled, even when enable by configuration.
1 parent 61ee864 commit 788e185

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

crates/tap-agent/src/agent.rs

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,21 @@ pub async fn start_agent() -> (ActorRef<SenderAccountsManagerMessage>, JoinHandl
174174
.await
175175
.expect("Error creating escrow_accounts channel");
176176

177-
let config = Box::leak(Box::new(SenderAccountConfig::from_config(&CONFIG)));
177+
let config = Box::leak(Box::new({
178+
let mut config = SenderAccountConfig::from_config(&CONFIG);
179+
// FIXME: This is a temporary measure to disable
180+
// Horizon, even if enable through our configuration file.
181+
// Force disable Horizon support
182+
config.horizon_enabled = false;
183+
// Add a warning log so operators know their setting was ignore
184+
if CONFIG.horizon.enabled {
185+
tracing::warn!(
186+
"Horizon support is configured as enabled but has been forcibly disabled as it's not fully supported yet. \
187+
This is a temporary measure until Horizon support is stable."
188+
);
189+
}
190+
config
191+
}));
178192

179193
let args = SenderAccountsManagerArgs {
180194
config,

0 commit comments

Comments
 (0)