This commit is contained in:
Mars 2024-06-22 14:47:59 -04:00
parent ab097e2370
commit 875b9c7dd1
5 changed files with 23 additions and 17 deletions

View file

@ -48,7 +48,7 @@ fn GetDate()->string {
fn main()->i32 {
using std::future;
const Config& config = Config::getInstance();
const Config config = Config::getInstance();
auto weatherFuture =
std::async(std::launch::async, [&config]() { return config.weather.get().getWeatherInfo(); });