Skip to content

Commit 5cc7d58

Browse files
authored
chore: minor improvement for docs (#1079)
Signed-off-by: sunnyraindy <sunnyraindy@outlook.com>
1 parent 59a2640 commit 5cc7d58

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

iot_verifier/src/loader.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ impl Loader {
203203
after: DateTime<Utc>,
204204
before: DateTime<Utc>,
205205
) -> anyhow::Result<()> {
206-
// create the inital xor data vec
206+
// create the initial xor data vec
207207
// wrapped in a mutex to allow for concurrent access
208208
let xor_data = Mutex::new(Vec::<u64>::new());
209209

iot_verifier/src/reward_share.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ static DATA_TRANSFER_REWARDS_PER_DAY_PERCENT: Decimal = dec!(0.50);
2121
static OPERATIONS_REWARDS_PER_DAY_PERCENT: Decimal = dec!(0.07);
2222
// Oracles fund is allocated 7% of daily rewards
2323
static ORACLES_REWARDS_PER_DAY_PERCENT: Decimal = dec!(0.07);
24-
// dc remainer distributed at ration of 4:1 in favour of witnesses
24+
// dc remainder distributed at ration of 4:1 in favour of witnesses
2525
// ie WITNESS_REWARDS_PER_DAY_PERCENT:BEACON_REWARDS_PER_DAY_PERCENT
2626
static WITNESS_DC_REMAINER_PERCENT: Decimal = dec!(0.80);
2727
static BEACON_DC_REMAINER_PERCENT: Decimal = dec!(0.20);
@@ -283,7 +283,7 @@ impl GatewayShares {
283283
// the rewards distributed to gateways will be equal to this
284284
// up to a max cap of total_dc_transfer_rewards
285285
// if the dc transfer rewards is less than total_dc_transfer_rewards
286-
// then the remainer will be added to the POC rewards allocation
286+
// then the remainder will be added to the POC rewards allocation
287287
let total_dc_transfer_rewards_used =
288288
dc_to_hnt_bones(total_dc_shares, price_info.price_per_bone);
289289
let (dc_transfer_rewards_unused, total_dc_transfer_rewards_capped) =

metrics/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ macro_rules! record_duration {
5252
/// Incrementing a corresponding Prometheus gauge when the request is
5353
/// received and decrementing it when it has been responded to.
5454
/// 2. Request handling duration.
55-
/// Starting a timer before calling the handler and stoping after the
55+
/// Starting a timer before calling the handler and stopping after the
5656
/// handler returns.
5757
#[derive(Clone)]
5858
pub struct RequestsLayer {

mobile_packet_verifier/tests/integrations/burner.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ fn unconfirmed_pending_txn_moves_data_session_back_to_primary_table(
282282
assert_eq!(txn_count, 1, "there should be a single pending txn");
283283

284284
// Fail the pending txn.
285-
// Adding a random confirmed txn wll cause other txns to not be considered finalized
285+
// Adding a random confirmed txn will cause other txns to not be considered finalized
286286
let solana_network = TestSolanaClientMap::default();
287287
solana_network.add_confirmed(Signature::new_unique()).await;
288288

0 commit comments

Comments
 (0)