Skip to content

Commit 6a3c656

Browse files
authored
Update StatsdClient.hpp
1 parent 066c1be commit 6a3c656

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

include/cpp-statsd-client/StatsdClient.hpp

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ inline std::string sanitizePrefix(std::string prefix) {
162162
return prefix;
163163
}
164164

165-
std::mt19937& rng(unsigned int seed = 0) {
165+
inline std::mt19937& rng(unsigned int seed = 0) {
166166
static thread_local std::mt19937 twister(seed);
167167
return twister;
168168
}
@@ -188,17 +188,6 @@ inline StatsdClient::StatsdClient(const std::string& host,
188188
detail::rng(seed);
189189
}
190190

191-
inline void StatsdClient::setConfig(const std::string& host,
192-
const uint16_t port,
193-
const std::string& prefix,
194-
const uint64_t batchsize,
195-
const uint64_t sendInterval,
196-
const int gaugePrecision) noexcept {
197-
m_prefix = detail::sanitizePrefix(prefix);
198-
m_sender.reset(new UDPSender(host, port, batchsize, sendInterval));
199-
m_gaugePrecision = gaugePrecision;
200-
}
201-
202191
inline const std::string& StatsdClient::errorMessage() const noexcept {
203192
return m_sender->errorMessage();
204193
}

0 commit comments

Comments
 (0)