fix(test): follow PerfLog's rpc hooks to string_view

PerfLog takes the method name as a std::string_view, so SilentPerfLog's three
rpc overrides stopped overriding anything and left the class abstract.
This commit is contained in:
Pratik Mankawde
2026-09-21 12:52:13 +01:00
parent 5e398cd6b7
commit 1bffe264f0

View File

@@ -31,6 +31,7 @@
#include <mutex>
#include <optional>
#include <string>
#include <string_view>
#include <utility>
#include <vector>
@@ -243,15 +244,15 @@ public:
class SilentPerfLog : public perf::PerfLog
{
void
rpcStart(std::string const&, std::uint64_t) override
rpcStart(std::string_view, std::uint64_t) override
{
}
void
rpcFinish(std::string const&, std::uint64_t) override
rpcFinish(std::string_view, std::uint64_t) override
{
}
void
rpcError(std::string const&, std::uint64_t) override
rpcError(std::string_view, std::uint64_t) override
{
}
void