Skip to content

Commit

Permalink
feat(nns): Lower probability of panicking deprecated methods (#1659)
Browse files Browse the repository at this point in the history
Lower the probability of deprecated *_pb methods panicking to give
integrators more time to migrate.
  • Loading branch information
max-dfinity authored Sep 24, 2024
1 parent 51524d3 commit f3d13ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rs/nns/governance/canister/canister.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
);

Expand Down Expand Up @@ -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.",
);

Expand Down

0 comments on commit f3d13ef

Please sign in to comment.