Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Remove spurious merge artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston committed May 16, 2017
1 parent 608b5a6 commit 331570e
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions synapse/storage/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,19 +387,6 @@ def _persist_events(self, events_and_contexts, backfilled=False,

event_counter.inc(event.type, origin_type, origin_entity)

for event, context in chunk:
if context.app_service:
origin_type = "local"
origin_entity = context.app_service.id
elif self.hs.is_mine_id(event.sender):
origin_type = "local"
origin_entity = "*client*"
else:
origin_type = "remote"
origin_entity = get_domain_from_id(event.sender)

event_counter.inc(event.type, origin_type, origin_entity)

for room_id, (_, _, new_state) in current_state_for_room.iteritems():
self.get_current_state_ids.prefill(
(room_id, ), new_state
Expand Down

0 comments on commit 331570e

Please sign in to comment.