From cb4b9ef1e1b2e872d9f2cf29112f55dc26b0da7f Mon Sep 17 00:00:00 2001 From: Connector Switch Date: Thu, 5 Mar 2026 20:42:27 +0800 Subject: [PATCH 1/2] Fix spelling error in metric introduction Corrected the spelling of 'couter' to 'counter' in the metric introduction. --- website/docs/zh/metric/metric_introduction.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/zh/metric/metric_introduction.md b/website/docs/zh/metric/metric_introduction.md index f2538f0a2..b7398d5d6 100644 --- a/website/docs/zh/metric/metric_introduction.md +++ b/website/docs/zh/metric/metric_introduction.md @@ -2,7 +2,7 @@ metric 用于统计应用程序的各种指标,这些指标被用于系统见识和警报,常见的指标类型有四种:Counter、Gauge、Histogram和Summary,这些指标遵循[Prometheus](https://hulining.gitbook.io/prometheus/introduction)的数据格式。yalantinglibs提供了一系列高性能且线程安全的统计工具。 metric 包括4种指标类型: -- couter:只会增加的指标; +- counter:只会增加的指标; - gauge:可以增加或减少的指标,它派生于counter; - histogram:直方图,初始化的时候需要设置桶(bucket); - summary:分位数指标,初始化的时候需要设置桶和误差; From 00c05da9ba5f0b15cb5e546b46df2ff39a07de98 Mon Sep 17 00:00:00 2001 From: qicosmos Date: Fri, 6 Mar 2026 07:12:10 +0800 Subject: [PATCH 2/2] fix warning --- include/ylt/standalone/cinatra/coro_http_server.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/ylt/standalone/cinatra/coro_http_server.hpp b/include/ylt/standalone/cinatra/coro_http_server.hpp index 8499ce57f..0d59fcd41 100644 --- a/include/ylt/standalone/cinatra/coro_http_server.hpp +++ b/include/ylt/standalone/cinatra/coro_http_server.hpp @@ -833,7 +833,7 @@ class coro_http_server { std::scoped_lock lock(*conn_mtx_); connections_.emplace(conn_id, conn); } - return std::move(conn); + return conn; } async_simple::coro::Lazy accept() { @@ -1219,4 +1219,4 @@ class coro_http_server { using http_server = coro_http_server; using request = coro_http_request; using response = coro_http_response; -} // namespace cinatra \ No newline at end of file +} // namespace cinatra