Skip to content

Commit 1ddfbda

Browse files
committed
fix: env vars in config
1 parent da29daa commit 1ddfbda

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/config.rs

+8-8
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ pub struct BuilderConfig {
7575
)]
7676
pub quincey_url: Cow<'static, str>,
7777
/// Port for the Builder server.
78-
#[from_env(var = "BUILDER_PORT", desc = "Port for the Builder server")]
79-
pub builder_port: u16,
78+
#[from_env(var = "BUILDER_PORT", desc = "Port for the Builder server", optional)]
79+
pub builder_port: Option<u16>,
8080
/// Key to access Sequencer Wallet - AWS Key ID _OR_ local private key.
8181
/// Set IFF using local Sequencer signing instead of remote Quincey signing.
8282
#[from_env(
@@ -119,30 +119,30 @@ pub struct BuilderConfig {
119119
pub tx_pool_url: Cow<'static, str>,
120120
/// Duration in seconds transactions can live in the tx-pool cache.
121121
#[from_env(
122-
var = "AUTH_TOKEN_REFRESH_INTERVAL",
122+
var = "TX_POOL_CACHE_DURATION",
123123
desc = "Duration in seconds transactions can live in the tx-pool cache"
124124
)]
125125
pub tx_pool_cache_duration: u64,
126126
/// OAuth client ID for the builder.
127-
#[from_env(var = "TX_POOL_CACHE_DURATION", desc = "OAuth client ID for the builder")]
127+
#[from_env(var = "OAUTH_CLIENT_ID", desc = "OAuth client ID for the builder")]
128128
pub oauth_client_id: String,
129129
/// OAuth client secret for the builder.
130-
#[from_env(var = "OAUTH_CLIENT_ID", desc = "OAuth client secret for the builder")]
130+
#[from_env(var = "OAUTH_CLIENT_SECRET", desc = "OAuth client secret for the builder")]
131131
pub oauth_client_secret: String,
132132
/// OAuth authenticate URL for the builder for performing OAuth logins.
133133
#[from_env(
134-
var = "OAUTH_CLIENT_SECRET",
134+
var = "OAUTH_AUTHENTICATE_URL",
135135
desc = "OAuth authenticate URL for the builder for performing OAuth logins"
136136
)]
137137
pub oauth_authenticate_url: String,
138138
/// OAuth token URL for the builder to get an OAuth2 access token
139139
#[from_env(
140-
var = "OAUTH_AUTHENTICATE_URL",
140+
var = "OAUTH_TOKEN_URL",
141141
desc = "OAuth token URL for the builder to get an OAuth2 access token"
142142
)]
143143
pub oauth_token_url: String,
144144
/// The oauth token refresh interval in seconds.
145-
#[from_env(var = "OAUTH_TOKEN_URL", desc = "The oauth token refresh interval in seconds")]
145+
#[from_env(var = "CONCURRENCY_LIMIT", desc = "The oauth token refresh interval in seconds")]
146146
pub oauth_token_refresh_interval: u64,
147147
/// The max number of simultaneous block simulations to run.
148148
#[from_env(

0 commit comments

Comments
 (0)