diff --git a/src/rpc/stats.cpp b/src/rpc/stats.cpp index 2b153b4f68..9a49a2c8b8 100644 --- a/src/rpc/stats.cpp +++ b/src/rpc/stats.cpp @@ -73,7 +73,7 @@ RPCStats RPCStats::fromJSON(UniValue json) { return stats; } -bool CRPCStats::add(const std::string& name, const int64_t latency, const int64_t payload) +void CRPCStats::add(const std::string& name, const int64_t latency, const int64_t payload) { auto stats = CRPCStats::get(name); if (stats) { diff --git a/src/rpc/stats.h b/src/rpc/stats.h index 6bcf2575ab..e0ea0b6714 100644 --- a/src/rpc/stats.h +++ b/src/rpc/stats.h @@ -56,7 +56,7 @@ class CRPCStats private: std::map map; public: - bool add(const std::string& name, const int64_t latency, const int64_t payload); + void add(const std::string& name, const int64_t latency, const int64_t payload); std::optional get(const std::string& name) { auto it = map.find(name);