get_hypersync_concurrency_from_env

Documentation for eth_defi.hypersync.session.get_hypersync_concurrency_from_env function.

get_hypersync_concurrency_from_env()

Read HYPERSYNC_CONCURRENCY from the environment.

Returns None when the variable is unset or blank (meaning use the Hypersync server default of 10). Raises ValueError when the value is not a positive integer.

Return type

Optional[int]