From f3d13ef565c6e2fa96c9941a0b1438b53c49c891 Mon Sep 17 00:00:00 2001 From: max-dfinity <100170574+max-dfinity@users.noreply.github.com> Date: Tue, 24 Sep 2024 13:03:08 -0700 Subject: [PATCH] feat(nns): Lower probability of panicking deprecated methods (#1659) Lower the probability of deprecated *_pb methods panicking to give integrators more time to migrate. --- rs/nns/governance/canister/canister.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rs/nns/governance/canister/canister.rs b/rs/nns/governance/canister/canister.rs index 16c83a3a5ff..152acde580c 100644 --- a/rs/nns/governance/canister/canister.rs +++ b/rs/nns/governance/canister/canister.rs @@ -739,7 +739,7 @@ async fn heartbeat() { fn manage_neuron_pb() { debug_log("manage_neuron_pb"); panic_with_probability( - 0.7, + 0.1, "manage_neuron_pb is deprecated. Please use manage_neuron instead.", ); @@ -774,7 +774,7 @@ fn list_proposals_pb() { fn list_neurons_pb() { debug_log("list_neurons_pb"); panic_with_probability( - 0.7, + 0.1, "list_neurons_pb is deprecated. Please use list_neurons instead.", );