diff --git a/include/ylt/coro_io/channel.hpp b/include/ylt/coro_io/channel.hpp index 8f7364913..793e33a0a 100644 --- a/include/ylt/coro_io/channel.hpp +++ b/include/ylt/coro_io/channel.hpp @@ -107,8 +107,8 @@ class channel { } private: - void init(const std::vector& hosts, const channel_config& config, - client_pools_t& client_pools) { + 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) { diff --git a/src/coro_rpc/examples/base_examples/channel.cpp b/src/coro_rpc/examples/base_examples/channel.cpp index 58cff9189..27c0c8ff8 100644 --- a/src/coro_rpc/examples/base_examples/channel.cpp +++ b/src/coro_rpc/examples/base_examples/channel.cpp @@ -86,8 +86,8 @@ Lazy qps_watcher() { } int main() { - auto hosts = std::vector{ - {"127.0.0.1:8801", "localhost:8801"}}; + auto hosts = + std::vector{{"127.0.0.1:8801", "localhost:8801"}}; auto worker_cnt = std::thread::hardware_concurrency() * 20; auto chan = coro_io::channel::create( hosts, coro_io::channel::channel_config{