diff --git a/src/Backends/Flume.cxx b/src/Backends/Flume.cxx index de6b5bb2a..09a950ebe 100644 --- a/src/Backends/Flume.cxx +++ b/src/Backends/Flume.cxx @@ -50,7 +50,7 @@ void Flume::send(std::vector&& metrics) std::string flumeMetrics = ""; for (auto& metric : metrics) { flumeMetrics += metricToJson(metric); - flumeMetrics += "\n"; + flumeMetrics += '\n'; } mTransport->send(std::move(flumeMetrics)); } @@ -84,7 +84,9 @@ std::string Flume::metricsToJson(std::string measurement, std::vector&& void Flume::send(const Metric& metric) { - mTransport->send(metricToJson(metric)); + std::string toSend = metricToJson(metric); + toSend += '\n'; + mTransport->send(std::move(toSend)); } inline unsigned long Flume::convertTimestamp(const std::chrono::time_point& timestamp)