chore: Add names to fibers that were missing them (#1667)

This commit is contained in:
Roy Jacobson 2023-08-08 13:01:50 +02:00 committed by GitHub
parent 16e512c60d
commit 4001a94b22
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 20 additions and 17 deletions

View file

@ -9,7 +9,7 @@ using namespace util;
void JournalStreamer::Start(io::Sink* dest) {
using namespace journal;
write_fb_ = MakeFiber(&JournalStreamer::WriterFb, this, dest);
write_fb_ = fb2::Fiber("journal_stream", &JournalStreamer::WriterFb, this, dest);
journal_cb_id_ = journal_->RegisterOnChange([this](const Entry& entry, bool allow_await) {
if (entry.opcode == Op::NOOP) {
// No recode to write, just await if data was written so consumer will read the data.