mirror of
https://github.com/XRPLF/rippled.git
synced 2026-09-26 23:19:07 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user