mirror of
https://github.com/nghttp2/nghttp2.git
synced 2025-12-07 18:48:54 +08:00
shrpx_downstream_connection_pool: Adopt std::ranges
This commit is contained in:
@@ -50,7 +50,7 @@ DownstreamConnectionPool::pop_downstream_connection() {
|
|||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
auto it = std::begin(pool_);
|
auto it = std::ranges::begin(pool_);
|
||||||
auto dconn = std::unique_ptr<DownstreamConnection>(*it);
|
auto dconn = std::unique_ptr<DownstreamConnection>(*it);
|
||||||
pool_.erase(it);
|
pool_.erase(it);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user