From 9028d81f71addd9bc930b281315bf1300f67eed1 Mon Sep 17 00:00:00 2001 From: William Smith Date: Sun, 11 Aug 2024 00:09:22 +0100 Subject: [PATCH 1/2] kebab case policy types --- crates/sui-types/src/traffic_control.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/sui-types/src/traffic_control.rs b/crates/sui-types/src/traffic_control.rs index 6a70ea3ad28abe..1f229a6fd6a2f4 100644 --- a/crates/sui-types/src/traffic_control.rs +++ b/crates/sui-types/src/traffic_control.rs @@ -204,6 +204,7 @@ fn default_sketch_tolerance() -> f64 { // Serializable representation of policy types, used in config // in order to easily change in tests or to killswitch +#[serde(rename_all = "kebab-case")] #[derive(Clone, Serialize, Deserialize, Debug, Default)] pub enum PolicyType { /// Does nothing From 4915a7c97aa7e089eb7aa1baa5de2a2a2edc74cf Mon Sep 17 00:00:00 2001 From: William Smith Date: Wed, 6 Nov 2024 15:18:04 -0800 Subject: [PATCH 2/2] [Bridge Node] Fix prefetch delay --- crates/sui-bridge/src/client/bridge_authority_aggregator.rs | 2 +- crates/sui-types/src/traffic_control.rs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/sui-bridge/src/client/bridge_authority_aggregator.rs b/crates/sui-bridge/src/client/bridge_authority_aggregator.rs index c3229fc5e4dccd..3b759e929a2400 100644 --- a/crates/sui-bridge/src/client/bridge_authority_aggregator.rs +++ b/crates/sui-bridge/src/client/bridge_authority_aggregator.rs @@ -99,7 +99,7 @@ impl BridgeAuthorityAggregator { self.committee.clone(), self.clients.clone(), state, - Duration::from_secs(PREFETCH_TIMEOUT_MS), + Duration::from_millis(PREFETCH_TIMEOUT_MS), ) .await } diff --git a/crates/sui-types/src/traffic_control.rs b/crates/sui-types/src/traffic_control.rs index 1f229a6fd6a2f4..6a70ea3ad28abe 100644 --- a/crates/sui-types/src/traffic_control.rs +++ b/crates/sui-types/src/traffic_control.rs @@ -204,7 +204,6 @@ fn default_sketch_tolerance() -> f64 { // Serializable representation of policy types, used in config // in order to easily change in tests or to killswitch -#[serde(rename_all = "kebab-case")] #[derive(Clone, Serialize, Deserialize, Debug, Default)] pub enum PolicyType { /// Does nothing