From 2d57e3b57e02cad3682f78e313491906bf2f071b Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Sun, 5 Mar 2023 00:22:57 +0200 Subject: [PATCH] Update and rename kafka_skin.h to kafka_sink.h --- include/spdlog/sinks/{kafka_skin.h => kafka_sink.h} | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) rename include/spdlog/sinks/{kafka_skin.h => kafka_sink.h} (94%) diff --git a/include/spdlog/sinks/kafka_skin.h b/include/spdlog/sinks/kafka_sink.h similarity index 94% rename from include/spdlog/sinks/kafka_skin.h rename to include/spdlog/sinks/kafka_sink.h index 12d62286..3c0680ef 100644 --- a/include/spdlog/sinks/kafka_skin.h +++ b/include/spdlog/sinks/kafka_sink.h @@ -38,10 +38,10 @@ struct kafka_sink_config }; template -class kafka_skin : public base_sink +class kafka_sink : public base_sink { public: - kafka_skin(kafka_sink_config config) + kafka_sink(kafka_sink_config config) : config_{std::move(config)} { try @@ -77,7 +77,7 @@ public: } } - ~kafka_skin() + ~kafka_sink() { producer_->flush(config_.flush_timeout_ms); } @@ -101,8 +101,8 @@ private: std::unique_ptr topic_ = nullptr; }; -using kafka_sink_mt = kafka_skin; -using kafka_sink_st = kafka_skin; +using kafka_sink_mt = kafka_sink; +using kafka_sink_st = kafka_sink; } // namespace sinks @@ -130,4 +130,4 @@ inline std::shared_ptr kafka_logger_async_st(std::string logger_ return Factory::template create(logger_name, config); } -} // namespace spdlog \ No newline at end of file +} // namespace spdlog