Skip to content
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

Addressing issue #41 - Allow config of maxSyncConcurrency #62

Closed
wants to merge 3 commits into from

Conversation

smeyerhot
Copy link

Fixes #41

Motivation

This commit allows users to specify an env variable MAXSYNC which overrides DefaultConcurrency in rosetta-sdk-go.

Solution

The solution was to add a field to the Configuration struct in the same way as Mode and Network. Then used this value when constructing the syncer to override defaults.

Open questions

@smeyerhot
Copy link
Author

smeyerhot commented Dec 25, 2020

MaxSync should never be less than DefaultSync ie. 4 but if it is in {1,2,3} it will be adjusted by syncer.Sync.

@smeyerhot smeyerhot closed this Dec 25, 2020
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.

Allow max concurrency limits configuration on the indexer
1 participant