mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 03:52:49 +01:00
stats: remove double indentation in header file
This commit is contained in:
parent
17110f50b3
commit
f782dfd562
@ -26,11 +26,11 @@ static constexpr int MAX_STATSD_PERIOD{60 * 60};
|
||||
|
||||
namespace statsd {
|
||||
class StatsdClient {
|
||||
public:
|
||||
public:
|
||||
explicit StatsdClient(const std::string& host, const std::string& nodename, uint16_t port,
|
||||
const std::string& ns, bool enabled);
|
||||
|
||||
public:
|
||||
public:
|
||||
bool inc(const std::string& key, float sample_rate = 1.f);
|
||||
bool dec(const std::string& key, float sample_rate = 1.f);
|
||||
bool count(const std::string& key, int64_t value, float sample_rate = 1.f);
|
||||
@ -44,7 +44,7 @@ class StatsdClient {
|
||||
bool send(std::string key, int64_t value, const std::string& type, float sample_rate);
|
||||
bool sendDouble(std::string key, double value, const std::string& type, float sample_rate);
|
||||
|
||||
private:
|
||||
private:
|
||||
/**
|
||||
* (Low Level Api) manually send a message
|
||||
* which might be composed of several lines.
|
||||
@ -54,7 +54,7 @@ class StatsdClient {
|
||||
void cleanup(std::string& key);
|
||||
bool ShouldSend(float sample_rate);
|
||||
|
||||
private:
|
||||
private:
|
||||
mutable Mutex cs;
|
||||
mutable FastRandomContext insecure_rand GUARDED_BY(cs);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user