From 63e9122a4b02455f469a379282a693aafabe1ced Mon Sep 17 00:00:00 2001 From: qicosmos Date: Mon, 26 Jun 2023 19:08:12 +0800 Subject: [PATCH] update config --- include/coro_io/channel.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/include/coro_io/channel.hpp b/include/coro_io/channel.hpp index 687313b69..25ef12a18 100644 --- a/include/coro_io/channel.hpp +++ b/include/coro_io/channel.hpp @@ -108,6 +108,7 @@ class channel { private: void init(const std::vector hosts, const channel_config& config, client_pools_t& client_pools) { + config_ = config; client_pools_.reserve(hosts.size()); for (auto& host : hosts) { client_pools_.emplace_back(client_pools.at(host, config.pool_config));