Skip to content

Commit

Permalink
Rename functions
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston committed Feb 10, 2016
1 parent 7b0d846 commit 0214745
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions synapse/storage/event_push_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@


class EventPushActionsStore(SQLBaseStore):
def _set_push_actions_for_event_and_users(self, txn, event, tuples):
def _set_push_actions_for_event_and_users_txn(self, txn, event, tuples):
"""
:param event: the event set actions for
:param tuples: list of tuples of (user_id, profile_tag, actions)
Expand Down Expand Up @@ -100,7 +100,7 @@ def _get_unread_event_push_actions_by_room(txn):
)
defer.returnValue(ret)

def _remove_push_actions_for_event_id(self, txn, room_id, event_id):
def _remove_push_actions_for_event_id_txn(self, txn, room_id, event_id):
# Sad that we have to blow away the cache for the whole room here
txn.call_after(
self.get_unread_event_push_actions_by_room_for_user.invalidate_many,
Expand Down
4 changes: 2 additions & 2 deletions synapse/storage/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,12 +221,12 @@ def _persist_events_txn(self, txn, events_and_contexts, backfilled,
)

if context.push_actions:
self._set_push_actions_for_event_and_users(
self._set_push_actions_for_event_and_users_txn(
txn, event, context.push_actions
)

if event.type == EventTypes.Redaction and event.redacts is not None:
self._remove_push_actions_for_event_id(
self._remove_push_actions_for_event_id_txn(
txn, event.room_id, event.redacts
)

Expand Down

0 comments on commit 0214745

Please sign in to comment.