Indirect evt_count updates via method call

so that we can stub it for the sentinel and not have a billion failing UTs
This commit is contained in:
Richard van der Hoff 2018-06-22 10:42:28 +01:00
parent b088aafcae
commit 0495fe0035
2 changed files with 12 additions and 1 deletions

View file

@ -147,7 +147,7 @@ class EventsWorkerStore(SQLBaseStore):
if missing_events_ids:
log_ctx = LoggingContext.current_context()
log_ctx.evt_db_fetch_count += len(missing_events_ids)
log_ctx.record_event_fetch(len(missing_events_ids))
missing_events = yield self._enqueue_events(
missing_events_ids,