summary refs log tree commit diff
path: root/src/Cache.cpp
diff options
context:
space:
mode:
authorJoseph Donofry <joedonofry@gmail.com>2021-03-04 19:11:08 -0500
committerJoseph Donofry <joedonofry@gmail.com>2021-03-04 19:11:08 -0500
commit4b12b53133d91794ae29a0b96d56948bca8e0d1b (patch)
treef74ede8217b9e82eda61a3bb2a8133afeb1c7d32 /src/Cache.cpp
parentProperly format matrix errors in spdlog statements (diff)
downloadnheko-4b12b53133d91794ae29a0b96d56948bca8e0d1b.tar.xz
Fix linting
Diffstat (limited to '')
-rw-r--r--src/Cache.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/Cache.cpp b/src/Cache.cpp

index 5ec3f32c..d54f8f6e 100644 --- a/src/Cache.cpp +++ b/src/Cache.cpp
@@ -3566,23 +3566,23 @@ Cache::query_keys(const std::string &user_id, last_changed = cache_->last_changed; req.token = last_changed; - http::client()->query_keys(req, - [cb, user_id, last_changed](const mtx::responses::QueryKeys &res, - mtx::http::RequestErr err) { - if (err) { - nhlog::net()->warn( - "failed to query device keys: {},{}", - mtx::errors::to_string(err->matrix_error.errcode), - static_cast<int>(err->status_code)); - cb({}, err); - return; - } + http::client()->query_keys( + req, + [cb, user_id, last_changed](const mtx::responses::QueryKeys &res, + mtx::http::RequestErr err) { + if (err) { + nhlog::net()->warn("failed to query device keys: {},{}", + mtx::errors::to_string(err->matrix_error.errcode), + static_cast<int>(err->status_code)); + cb({}, err); + return; + } - cache::updateUserKeys(last_changed, res); + cache::updateUserKeys(last_changed, res); - auto keys = cache::userKeys(user_id); - cb(keys.value_or(UserKeyCache{}), err); - }); + auto keys = cache::userKeys(user_id); + cb(keys.value_or(UserKeyCache{}), err); + }); } void