diff options
| author | levlam <levlam@telegram.org> | 2023-01-16 12:47:37 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2023-01-16 12:47:37 +0300 |
| commit | 3e5f30af700145d6059dca793cc29cfab276628c (patch) | |
| tree | 0c9f0c270247e0f489f747cd756b49e6756f5c0e /test/secret.cpp | |
| parent | c508e54a49c03a34ac448d3036963aa181b57d73 (diff) | |
Improve event_id variable names.
Diffstat (limited to 'test/secret.cpp')
| -rw-r--r-- | test/secret.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/secret.cpp b/test/secret.cpp index 01024720c..05b91af1c 100644 --- a/test/secret.cpp +++ b/test/secret.cpp @@ -382,14 +382,14 @@ class FakeBinlog final void force_flush() final { } - uint64 next_id() final { - auto res = last_id_; - last_id_++; + uint64 next_event_id() final { + auto res = last_event_id_; + last_event_id_++; return res; } - uint64 next_id(int32 shift) final { - auto res = last_id_; - last_id_ += shift; + uint64 next_event_id(int32 shift) final { + auto res = last_event_id_; + last_event_id_ += shift; return res; } template <class F> @@ -420,7 +420,7 @@ class FakeBinlog final } void close_and_destroy_impl(Promise<> promise) final { } - void add_raw_event_impl(uint64 id, BufferSlice &&raw_event, Promise<> promise, BinlogDebugInfo info) final { + void add_raw_event_impl(uint64 event_id, BufferSlice &&raw_event, Promise<> promise, BinlogDebugInfo info) final { auto event = BinlogEvent(std::move(raw_event), info); LOG(INFO) << "ADD EVENT: " << event.id_ << " " << event; pending_events_.emplace_back(); @@ -464,7 +464,7 @@ class FakeBinlog final } } bool has_request_sync = false; - uint64 last_id_ = 1; + uint64 last_event_id_ = 1; detail::BinlogEventsProcessor events_processor_; struct PendingEvent { |
