stats: remove double indentation in header file

This commit is contained in:
Kittywhiskers Van Gogh 2024-09-10 16:22:07 +00:00
parent 17110f50b3
commit f782dfd562
No known key found for this signature in database
GPG Key ID: 30CD0C065E5C4AAD

View File

@ -26,11 +26,11 @@ static constexpr int MAX_STATSD_PERIOD{60 * 60};
namespace statsd { namespace statsd {
class StatsdClient { class StatsdClient {
public: public:
explicit StatsdClient(const std::string& host, const std::string& nodename, uint16_t port, explicit StatsdClient(const std::string& host, const std::string& nodename, uint16_t port,
const std::string& ns, bool enabled); const std::string& ns, bool enabled);
public: public:
bool inc(const std::string& key, float sample_rate = 1.f); bool inc(const std::string& key, float sample_rate = 1.f);
bool dec(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); 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 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); bool sendDouble(std::string key, double value, const std::string& type, float sample_rate);
private: private:
/** /**
* (Low Level Api) manually send a message * (Low Level Api) manually send a message
* which might be composed of several lines. * which might be composed of several lines.
@ -54,7 +54,7 @@ class StatsdClient {
void cleanup(std::string& key); void cleanup(std::string& key);
bool ShouldSend(float sample_rate); bool ShouldSend(float sample_rate);
private: private:
mutable Mutex cs; mutable Mutex cs;
mutable FastRandomContext insecure_rand GUARDED_BY(cs); mutable FastRandomContext insecure_rand GUARDED_BY(cs);