diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2023-02-16 22:39:42 -0500 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2023-02-16 22:39:42 -0500 |
commit | b85bd4ccaa663afa3e9805c7c33efae6b8b9f84c (patch) | |
tree | 5f3d7af9550763145b9a3c0f9ec9f629cce670ee /lingo.cpp | |
parent | 480463aac0ca53ea56d6017724632fee32146724 (diff) | |
download | lingo-b85bd4ccaa663afa3e9805c7c33efae6b8b9f84c.tar.gz lingo-b85bd4ccaa663afa3e9805c7c33efae6b8b9f84c.tar.bz2 lingo-b85bd4ccaa663afa3e9805c7c33efae6b8b9f84c.zip |
Long queries time out after two minutes now
fixes #7
Diffstat (limited to 'lingo.cpp')
-rw-r--r-- | lingo.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lingo.cpp b/lingo.cpp index 137d6e7..64c97ac 100644 --- a/lingo.cpp +++ b/lingo.cpp | |||
@@ -430,6 +430,8 @@ public: | |||
430 | dpp::snowflake channel(config["discord_channel"].as<uint64_t>()); | 430 | dpp::snowflake channel(config["discord_channel"].as<uint64_t>()); |
431 | 431 | ||
432 | database_ = std::make_unique<verbly::database>(config["verbly_datafile"].as<std::string>()); | 432 | database_ = std::make_unique<verbly::database>(config["verbly_datafile"].as<std::string>()); |
433 | database_->setTimeout(60 * 2); | ||
434 | |||
433 | imagenet_ = std::make_unique<imagenet>(config["imagenet"].as<std::string>()); | 435 | imagenet_ = std::make_unique<imagenet>(config["imagenet"].as<std::string>()); |
434 | wanderlust_ = std::make_unique<wanderlust>(config["wanderlust"].as<std::string>()); | 436 | wanderlust_ = std::make_unique<wanderlust>(config["wanderlust"].as<std::string>()); |
435 | fontpath_ = config["font"].as<std::string>(); | 437 | fontpath_ = config["font"].as<std::string>(); |
@@ -521,7 +523,7 @@ private: | |||
521 | {kTop, kRed}, | 523 | {kTop, kRed}, |
522 | {kTop, kBlue}, | 524 | {kTop, kBlue}, |
523 | {kTop, kBlack}, | 525 | {kTop, kBlack}, |
524 | //{kTop, kYellow}, | 526 | {kTop, kYellow}, |
525 | {kMiddle, kYellow}, | 527 | {kMiddle, kYellow}, |
526 | {kMiddle, kRed}, | 528 | {kMiddle, kRed}, |
527 | {kMiddle, kBlue}, | 529 | {kMiddle, kBlue}, |