Skip to content

fix(quickstart): enable batching in mass-payout.js#445

Open
Kubudak90 wants to merge 1 commit into
coinbase:masterfrom
Kubudak90:fix/mass-payout-batching-v2
Open

fix(quickstart): enable batching in mass-payout.js#445
Kubudak90 wants to merge 1 commit into
coinbase:masterfrom
Kubudak90:fix/mass-payout-batching-v2

Conversation

@Kubudak90
Copy link
Copy Markdown

The sendMassPayout function was awaiting each transfer inside the for-await loop, which prevented the SDK from batching transfers efficiently. This caused sequential processing instead of parallel.

Changes:

  • Collect all transfers in an array first
  • Wait for all transfers to complete after queuing
  • Improves performance when processing multiple payouts

Fixes #416

The sendMassPayout function was awaiting each transfer inside the
for-await loop, which prevented the SDK from batching transfers
efficiently. This caused sequential processing instead of parallel.

Changes:
- Collect all transfers in an array first
- Wait for all transfers to complete after queuing
- Improves performance when processing multiple payouts

Fixes coinbase#416
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant