Skip to content

Commit

Permalink
lowering standards..
Browse files Browse the repository at this point in the history
  • Loading branch information
devnexen committed Nov 30, 2023
1 parent 365b1c1 commit e4506a0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/tls/tls_session_manager_memory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ std::vector<Session_with_Handle> Session_Manager_In_Memory::find_some(const Serv
lock_guard_type<recursive_mutex_type> lk(mutex());

std::vector<Session_with_Handle> found_sessions;
auto t = m_sessions | std::views::transform([](const auto& e) { return e.second; });
std::vector<Session_with_Handle> t;
t.reserve(m_sessions.size());
std::transform(m_sessions.begin(), m_sessions.end(), std::back_inserter(t), [](const auto& e) { return e.second; });
std::copy_if(t.begin(), t.end(), std::back_inserter(found_sessions), [&](const auto& e) {
return e.session.server_info() == info;
});
Expand Down

0 comments on commit e4506a0

Please sign in to comment.