mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-24 08:49:25 -05:00
Use itertools
This commit is contained in:
parent
bc8fa1509d
commit
1bb35e3a83
@ -12,6 +12,7 @@
|
|||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
import itertools
|
||||||
import logging
|
import logging
|
||||||
import sys
|
import sys
|
||||||
import threading
|
import threading
|
||||||
@ -1204,8 +1205,7 @@ class SQLBaseStore(object):
|
|||||||
"""
|
"""
|
||||||
txn.call_after(self._invalidate_state_caches, room_id, members_changed)
|
txn.call_after(self._invalidate_state_caches, room_id, members_changed)
|
||||||
|
|
||||||
keys = [room_id]
|
keys = itertools.chain([room_id], members_changed)
|
||||||
keys.extend(members_changed)
|
|
||||||
self._send_invalidation_to_replication(
|
self._send_invalidation_to_replication(
|
||||||
txn, _CURRENT_STATE_CACHE_NAME, keys,
|
txn, _CURRENT_STATE_CACHE_NAME, keys,
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user