Changeset View
Changeset View
Standalone View
Standalone View
src/avalanche/processor.h
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | |||||
static constexpr size_t AVALANCHE_MAX_ELEMENT_POLL = 16; | static constexpr size_t AVALANCHE_MAX_ELEMENT_POLL = 16; | ||||
/** | /** | ||||
* Avalanche default cooldown in milliseconds. | * Avalanche default cooldown in milliseconds. | ||||
*/ | */ | ||||
static constexpr size_t AVALANCHE_DEFAULT_COOLDOWN = 100; | static constexpr size_t AVALANCHE_DEFAULT_COOLDOWN = 100; | ||||
/** | /** | ||||
* How long before we consider that a query timed out. | * How long before we consider that a query timed out. | ||||
*/ | */ | ||||
static constexpr int AVALANCHE_DEFAULT_QUERY_TIMEOUT_DURATION_MILLISECONDS = | static constexpr std::chrono::milliseconds AVALANCHE_DEFAULT_QUERY_TIMEOUT{ | ||||
10000; | 10000}; | ||||
/** | /** | ||||
* How many inflight requests can exist for one item. | * How many inflight requests can exist for one item. | ||||
*/ | */ | ||||
static constexpr int AVALANCHE_MAX_INFLIGHT_POLL = 10; | static constexpr int AVALANCHE_MAX_INFLIGHT_POLL = 10; | ||||
/** | /** | ||||
* Special NodeId that represent no node. | * Special NodeId that represent no node. | ||||
▲ Show 20 Lines • Show All 241 Lines • Show Last 20 Lines |