Skip to content

refactor: fix rate limiter #1636

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Conversation

sergeytimoshin
Copy link
Contributor

No description provided.

Comment on lines -560 to -565
assert!(
total_processed_items >= minimum_processed_items,
"Processed fewer items ({}) than required ({})",
total_processed_items,
minimum_processed_items
);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we have this assert in a different place now?
(I just see an assert > 0.)

Comment on lines +122 to +123
let payer = payer.insecure_clone();
let signers = &[&payer];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
let payer = payer.insecure_clone();
let signers = &[&payer];
let signers = &[&payer];

@@ -262,14 +262,14 @@ pub async fn send_batched_transactions<T: TransactionBuilder, R: RpcConnection>(

let cancel_signal_clone = cancel_signal.clone();
let deadline = timeout_deadline;

let payer_clone = payer.insecure_clone();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this necessary since we are just passing a reference?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants