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

Commit

Permalink
Use itertools
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston committed Feb 19, 2019
1 parent bc8fa15 commit 1bb35e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions synapse/storage/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import itertools
import logging
import sys
import threading
Expand Down Expand Up @@ -1204,8 +1205,7 @@ def _invalidate_state_caches_and_stream(self, txn, room_id, members_changed):
"""
txn.call_after(self._invalidate_state_caches, room_id, members_changed)

keys = [room_id]
keys.extend(members_changed)
keys = itertools.chain([room_id], members_changed)
self._send_invalidation_to_replication(
txn, _CURRENT_STATE_CACHE_NAME, keys,
)
Expand Down

0 comments on commit 1bb35e3

Please sign in to comment.