Decrease MAX_PENDING_QUERIES_DELAY from 10 to 1.

GitOrigin-RevId: 9210a816b8a2b69709c1d117bcda6682f7aedbe0
This commit is contained in:
levlam 2018-03-14 14:57:43 +03:00
parent b48b0c5ece
commit 3abf2ef88e

View File

@ -81,7 +81,7 @@ class SqliteKeyValueAsync : public SqliteKeyValueAsyncInterface {
std::shared_ptr<SqliteKeyValueSafe> kv_safe_;
SqliteKeyValue *kv_ = nullptr;
static constexpr double MAX_PENDING_QUERIES_DELAY = 10;
static constexpr double MAX_PENDING_QUERIES_DELAY = 1;
static constexpr size_t MAX_PENDING_QUERIES_COUNT = 100;
std::unordered_map<string, optional<string>> buffer_;
std::vector<Promise<>> buffer_promises_;