Skip to content

Commit 77626cc

Browse files
committed
chore: fix unstable code use error
1 parent 057508d commit 77626cc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crates/attestation/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ fn wallet_for_allocation(
191191

192192
let wallet_address = wallet.address();
193193

194-
if i < 5 || i.is_multiple_of(20) {
194+
if i < 5 || (i % 20 == 0) {
195195
// Log first 5 attempts and every 20th attempt
196196
tracing::debug!(
197197
"Derivation attempt: epoch={}, index={}, derived_address={}, target_allocation={}",

crates/tap-agent/src/agent/sender_allocation_task.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ impl<T: NetworkVersion> SenderAllocationTask<T> {
636636
);
637637

638638
// Simulate potential aggregator communication failure (5% chance)
639-
if state.unaggregated_fees.counter.is_multiple_of(20) {
639+
if state.unaggregated_fees.counter % 20 == 0 {
640640
return Err(anyhow::anyhow!(
641641
"Simulated aggregator communication timeout"
642642
));

0 commit comments

Comments
 (0)