Skip to content

Commit

Permalink
chore: resolve warning code
Browse files Browse the repository at this point in the history
  • Loading branch information
Serein207 committed Sep 30, 2024
1 parent d829bfa commit 4a27848
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/Controller/AsyncExecutor.hh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <slint.h>
#include <spdlog/spdlog.h>
#include <thread>
#include <tuple>
#include <utility>

using namespace boost::asio::experimental::awaitable_operators;
Expand Down Expand Up @@ -171,7 +172,7 @@ private:
this](const boost::system::error_code& ec) {
if (!ec) {
// ensure timer is captured
[[maybe_unused]] auto _timer_got = timer.get();
std::ignore = timer.get();
net::co_spawn(_ioc, func(), [callback](std::exception_ptr e) {
if (!e) {
slint::invoke_from_event_loop(callback);
Expand Down Expand Up @@ -205,7 +206,7 @@ private:
this](const boost::system::error_code& ec) {
if (!ec) {
// ensure timer is captured
timer.get();
std::ignore = timer.get();
net::co_spawn(_ioc, func(), [callback](std::exception_ptr e, auto value) {
if (!e) {
slint::invoke_from_event_loop(
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/View/MenuOverlay.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ void MenuOverlay::onLogin() {
auto& self = *this;
auto userInfo = bridge.getAccountManager().getUserInfo();
self.refreshUserInfo(userInfo);
evento::executor()->asyncExecute(
executor()->asyncExecute(
[]() -> Task<Result<UserInfoEntity>> {
auto res = co_await networkClient()->getUserInfo();
co_return res;
Expand Down

0 comments on commit 4a27848

Please sign in to comment.