Simplify capture by value.

This commit is contained in:
levlam 2023-07-19 22:41:27 +03:00
parent bdcc79b418
commit abf32c44cc

View File

@ -1209,7 +1209,7 @@ void Session::connection_open(ConnectionInfo *info, double now, bool ask_info) {
// NB: rely on constant location of info
auto promise = PromiseCreator::cancellable_lambda(
info->cancellation_token_source_.get_cancellation_token(),
[actor_id = actor_id(this), info = info](Result<unique_ptr<mtproto::RawConnection>> res) {
[actor_id = actor_id(this), info](Result<unique_ptr<mtproto::RawConnection>> res) {
send_closure(actor_id, &Session::connection_open_finish, info, std::move(res));
});