Skip to content

Commit

Permalink
chore(starknet_sequencer_node): add remote client to active component…
Browse files Browse the repository at this point in the history
… config

commit-id:4f409ba2
  • Loading branch information
Itay-Tsabary-Starkware committed Dec 9, 2024
1 parent e0dd54d commit f3e00e8
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,22 +73,27 @@ impl Default for ReactiveComponentExecutionConfig {
#[derive(Clone, Debug, Serialize, Deserialize, Validate, PartialEq)]
pub struct ActiveComponentExecutionConfig {
pub execution_mode: ActiveComponentExecutionMode,
pub remote_client_config: Option<RemoteClientConfig>,
}

impl SerializeConfig for ActiveComponentExecutionConfig {
fn dump(&self) -> BTreeMap<ParamPath, SerializedParam> {
BTreeMap::from_iter([ser_param(
let members = BTreeMap::from_iter([ser_param(
"execution_mode",
&self.execution_mode,
"The component execution mode.",
ParamPrivacyInput::Public,
)])
)]);
vec![members, ser_optional_sub_config(&self.remote_client_config, "remote_client_config")]
.into_iter()
.flatten()
.collect()
}
}

impl Default for ActiveComponentExecutionConfig {
fn default() -> Self {
Self { execution_mode: ActiveComponentExecutionMode::Enabled }
Self { execution_mode: ActiveComponentExecutionMode::Enabled, remote_client_config: None }
}
}

Expand Down

0 comments on commit f3e00e8

Please sign in to comment.