From 4fa5df3df95fc6c88494c6f2550d7e3b6816d731 Mon Sep 17 00:00:00 2001 From: "Zezheng.Li" Date: Fri, 7 Jul 2023 14:02:52 +0800 Subject: [PATCH] fix format --- include/ylt/coro_io/channel.hpp | 4 ++-- src/coro_rpc/examples/base_examples/channel.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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{