Merge pull request #2140 from sunlong169/v1.x

No need to define the Mutex mutex_ as mutable there is no const method.
This commit is contained in:
Gabi Melman 2021-10-16 19:41:03 +03:00 committed by GitHub
commit 6aafa89d20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,7 +37,7 @@ public:
protected:
// sink formatter
std::unique_ptr<spdlog::formatter> formatter_;
mutable Mutex mutex_;
Mutex mutex_;
virtual void sink_it_(const details::log_msg &msg) = 0;
virtual void flush_() = 0;