0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 10:12:39 +01:00

ircd::net: No need to hold this pointer in closure.

This commit is contained in:
Jason Volk 2018-05-08 14:31:39 -07:00
parent 618fc8a95e
commit 79a44e4587

View file

@ -2411,7 +2411,7 @@ ircd::net::dns::operator()(const hostport &hp,
auto srv_opts{opts};
srv_opts.nxdomain_exceptions = false;
operator()(hp, srv_opts, [this, opts(opts), calluser(std::move(calluser))]
operator()(hp, srv_opts, [opts(opts), calluser(std::move(calluser))]
(std::exception_ptr eptr, hostport hp, const rfc1035::record::SRV &record)
mutable
{
@ -2428,7 +2428,7 @@ ircd::net::dns::operator()(const hostport &hp,
opts.srv = {};
opts.proto = {};
this->operator()(hp, opts, [calluser(std::move(calluser))]
net::dns(hp, opts, [calluser(std::move(calluser))]
(std::exception_ptr eptr, const hostport &hp, const rfc1035::record::A &record)
{
calluser(std::move(eptr), hp, record.ip4);