Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
poor-circle committed Jul 7, 2023
1 parent cd2d553 commit 4fa5df3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/ylt/coro_io/channel.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ class channel {
}

private:
void init(const std::vector<std::string_view>& hosts, const channel_config& config,
client_pools_t& client_pools) {
void init(const std::vector<std::string_view>& hosts,
const channel_config& config, client_pools_t& client_pools) {
config_ = config;
client_pools_.reserve(hosts.size());
for (auto& host : hosts) {
Expand Down
4 changes: 2 additions & 2 deletions src/coro_rpc/examples/base_examples/channel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ Lazy<void> qps_watcher() {
}

int main() {
auto hosts = std::vector<std::string_view>{
{"127.0.0.1:8801", "localhost:8801"}};
auto hosts =
std::vector<std::string_view>{{"127.0.0.1:8801", "localhost:8801"}};
auto worker_cnt = std::thread::hardware_concurrency() * 20;
auto chan = coro_io::channel<coro_rpc_client>::create(
hosts, coro_io::channel<coro_rpc_client>::channel_config{
Expand Down

0 comments on commit 4fa5df3

Please sign in to comment.