coinbase / mesh-bitcoin

Bitcoin Mesh API Implementation
Apache License 2.0
110 stars 121 forks source link

Teo/max sync concurrency #60

Closed smeyerhot closed 3 years ago

smeyerhot commented 3 years ago

Fixes # .

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