From a2ffebeb064149ab217e9e6ecfcdaed4c7b5cdf3 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Fri, 13 Sep 2019 18:10:49 -0700 Subject: [PATCH] ircd::m::rooms::summary: Use server name as fetch target. --- include/ircd/m/rooms.h | 2 +- modules/console.cc | 2 +- modules/m_rooms_summary.cc | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/ircd/m/rooms.h b/include/ircd/m/rooms.h index f2c401594..02a7811e6 100644 --- a/include/ircd/m/rooms.h +++ b/include/ircd/m/rooms.h @@ -54,7 +54,7 @@ struct ircd::m::rooms::summary::fetch std::string next_batch; // request - fetch(const net::hostport &hp, + fetch(const string_view &origin, const string_view &since = {}, const size_t &limit = 64); diff --git a/modules/console.cc b/modules/console.cc index fc8b0fbe8..69185dd6d 100644 --- a/modules/console.cc +++ b/modules/console.cc @@ -7760,7 +7760,7 @@ console_cmd__rooms__fetch(opt &out, const string_view &line) "server", "since" }}; - const net::hostport server + const string_view &server { param.at("server") }; diff --git a/modules/m_rooms_summary.cc b/modules/m_rooms_summary.cc index 5e76a29ae..ad87cd313 100644 --- a/modules/m_rooms_summary.cc +++ b/modules/m_rooms_summary.cc @@ -71,7 +71,7 @@ ircd::m::rooms::summary::fetch::limit // IRCD_MODULE_EXPORT -ircd::m::rooms::summary::fetch::fetch(const net::hostport &hp, +ircd::m::rooms::summary::fetch::fetch(const string_view &origin, const string_view &since, const size_t &limit) { @@ -88,7 +88,7 @@ ircd::m::rooms::summary::fetch::fetch(const net::hostport &hp, m::v1::public_rooms request { - hp, buf, std::move(opts) + origin, buf, std::move(opts) }; const auto code