From 2d8fad840a06ab1b5e2c062b865bb804a153e79c Mon Sep 17 00:00:00 2001 From: TimothyBanks Date: Thu, 23 Jul 2026 12:21:08 -0400 Subject: [PATCH] feat: Add some performance tests for escrow wasm functions --- src/libxrpl/beast/insight/Groups.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libxrpl/beast/insight/Groups.cpp b/src/libxrpl/beast/insight/Groups.cpp index 6a60c75aa2..fbdf8f3527 100644 --- a/src/libxrpl/beast/insight/Groups.cpp +++ b/src/libxrpl/beast/insight/Groups.cpp @@ -11,6 +11,7 @@ #include #include +#include #include #include #include @@ -87,6 +88,7 @@ public: Collector::ptr collector; Items items; + mutable std::mutex groupMutex; explicit GroupsImp(Collector::ptr collector) : collector(std::move(collector)) { @@ -97,6 +99,7 @@ public: Group::ptr const& get(std::string const& name) override { + std::scoped_lock const _{groupMutex}; std::pair const result(items.emplace(name, Group::ptr())); Group::ptr& group(result.first->second); if (result.second)