Skip to content

Commit 061089f

Browse files
committed
fix and update
1 parent 81e6f75 commit 061089f

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

include/ylt/coro_io/ibverbs/ib_device.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ class ib_device_t {
174174
throw std::system_error(ec);
175175
}
176176

177-
ELOG_TRACE << "Active MTU: " << detail::mtu_str(attr_.active_mtu) << ", "
177+
ELOG_TRACE << name_ << " Active MTU: " << detail::mtu_str(attr_.active_mtu) << ", "
178178
<< "Max MTU: " << detail::mtu_str(attr_.max_mtu);
179179

180180
find_best_gid_index();

include/ylt/metric/metric.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
#include "async_simple/coro/Lazy.h"
1515
#include "async_simple/coro/SyncAwait.h"
16-
#include "cinatra/cinatra_log_wrapper.hpp"
1716
#if __has_include("ylt/coro_io/coro_io.hpp")
1817
#include "ylt/coro_io/coro_io.hpp"
1918
#else

include/ylt/metric/metric_manager.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ class manager_helper {
1111
public:
1212
static bool register_metric(auto& metric_map, auto metric) {
1313
if (metric::metric_t::g_user_metric_count > ylt_metric_capacity) {
14-
CINATRA_LOG_ERROR << "metric count at capacity size: "
15-
<< metric::metric_t::g_user_metric_count;
14+
std::cerr << "metric count at capacity size: "
15+
<< metric::metric_t::g_user_metric_count << std::endl;
1616
return false;
1717
}
1818
auto&& [it, r] = metric_map.try_emplace(metric->str_name(), metric);
1919
if (!r) {
20-
CINATRA_LOG_ERROR << "duplicate registered metric name: "
21-
<< metric->str_name();
20+
std::cerr << "duplicate registered metric name: " << metric->str_name()
21+
<< std::endl;
2222
return false;
2323
}
2424

src/coro_rpc/benchmark/bench.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,9 @@ int main(int argc, char** argv) {
184184
easylog::set_async(false);
185185

186186
#ifdef YLT_ENABLE_IBV
187-
coro_io::g_ib_buffer_pool({.buffer_size = conf.buffer_size});
187+
if (conf.enable_ib) {
188+
coro_io::g_ib_buffer_pool({.buffer_size = conf.buffer_size});
189+
}
188190
#endif
189191

190192
if (conf.client_concurrency == 0) {

0 commit comments

Comments
 (0)