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