Skip to content

Commit

Permalink
chore(nns): Increase random error for protobuf methods to 30% (#1398)
Browse files Browse the repository at this point in the history
We'd like to deprecate protobuf methods in the NNS Governance by ramping
up the random failure gradually. Increase the failure rate from 10% to
30%.
  • Loading branch information
jasonz-dfinity authored Sep 9, 2024
1 parent e93ea2e commit 38b7b5a
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 @@ -863,7 +863,7 @@ fn canister_heartbeat() {
fn manage_neuron_pb() {
debug_log("manage_neuron_pb");
panic_with_probability(
0.1,
0.3,
"manage_neuron_pb is deprecated. Please use manage_neuron instead.",
);
over_async(protobuf, manage_neuron_)
Expand All @@ -885,7 +885,7 @@ fn list_proposals_pb() {
fn list_neurons_pb() {
debug_log("list_neurons_pb");
panic_with_probability(
0.1,
0.3,
"list_neurons_pb is deprecated. Please use list_neurons instead.",
);
over(protobuf, list_neurons_)
Expand Down

0 comments on commit 38b7b5a

Please sign in to comment.