Skip to content

Commit c8bca3c

Browse files
gusinacioaasseman
authored andcommitted
chore(style): update suggestions
Signed-off-by: Gustavo Inacio <[email protected]>
1 parent 8242976 commit c8bca3c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tap-agent/src/agent/sender_account.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ pub enum SenderAccountMessage {
4646
#[cfg(test)]
4747
GetDeny(ractor::RpcReplyPort<bool>),
4848
#[cfg(test)]
49-
HasSchedulerEnabled(ractor::RpcReplyPort<bool>),
49+
IsSchedulerEnabled(ractor::RpcReplyPort<bool>),
5050
}
5151

5252
/// A SenderAccount manages the receipts accounting between the indexer and the sender across
@@ -627,7 +627,7 @@ impl Actor for SenderAccount {
627627
}
628628
}
629629
#[cfg(test)]
630-
SenderAccountMessage::HasSchedulerEnabled(reply) => {
630+
SenderAccountMessage::IsSchedulerEnabled(reply) => {
631631
if !reply.is_closed() {
632632
let _ = reply.send(state.scheduled_rav_request.is_some());
633633
}
@@ -1617,9 +1617,9 @@ pub mod tests {
16171617
let deny = call!(sender_account, SenderAccountMessage::GetDeny).unwrap();
16181618
assert!(deny, "should be blocked");
16191619

1620-
let scheuduler_enabled =
1621-
call!(sender_account, SenderAccountMessage::HasSchedulerEnabled).unwrap();
1622-
assert!(scheuduler_enabled, "should have an scheduler enabled");
1620+
let scheduler_enabled =
1621+
call!(sender_account, SenderAccountMessage::IsSchedulerEnabled).unwrap();
1622+
assert!(scheduler_enabled, "should have an scheduler enabled");
16231623

16241624
// close the allocation and trigger
16251625
allocation.stop_and_wait(None, None).await.unwrap();
@@ -1632,7 +1632,7 @@ pub mod tests {
16321632
assert!(!deny, "should be unblocked");
16331633

16341634
let scheuduler_enabled =
1635-
call!(sender_account, SenderAccountMessage::HasSchedulerEnabled).unwrap();
1635+
call!(sender_account, SenderAccountMessage::IsSchedulerEnabled).unwrap();
16361636
assert!(!scheuduler_enabled, "should have an scheduler disabled");
16371637

16381638
sender_account.stop_and_wait(None, None).await.unwrap();

0 commit comments

Comments
 (0)