moonstream-to / waggle

Apache License 2.0
2 stars 2 forks source link

`waggle` batch upload to `/metatx` API #1

Closed zomglings closed 11 months ago

zomglings commented 11 months ago

waggle currently has issues uploading batches of call requests to the /metatx API. We receive API errors even if the requests are written successfully to the database.

The waggle moonstream drop command should take a batch-size parameter that specifies how many call requests should be pushed to the API at a time.

zomglings commented 11 months ago

This can be done by adding a batchSize int parameter to CreateCallRequests: https://github.com/moonstream-to/waggle/blob/974014d13a40ad2eebfc98b892def5636af69a34/moonstream.go#L206C137-L206C137