Compare commits

...

3 Commits

Author SHA1 Message Date
Quentin Gliech
b901cf6092 TEMP: try to trigger the issue more often 2025-08-04 18:25:16 +02:00
Quentin Gliech
14329060df TEMP: newsfile 2025-08-04 18:12:04 +02:00
Quentin Gliech
bf105d22f4 Add a custom __repr__ to RdataCommand for easier debugging 2025-08-04 18:03:25 +02:00
3 changed files with 7 additions and 4 deletions

1
changelog.d/18778.misc Normal file
View File

@@ -0,0 +1 @@
This is a temporary newsfile.

View File

@@ -20,7 +20,6 @@
#
#
import logging
import random
from threading import Lock
from typing import (
TYPE_CHECKING,
@@ -875,7 +874,7 @@ class DeviceHandler:
"""
await self._handle_room_un_partial_stated_client(
instance_name=random.choice(self._device_list_writers),
instance_name=self._device_list_writers[-1], # TEMP
room_id=room_id,
)
@@ -892,7 +891,7 @@ class DeviceHandler:
device_ids: The device IDs that have changed.
"""
await self._notify_device_update_client(
instance_name=random.choice(self._device_list_writers),
instance_name=self._device_list_writers[-1], # TEMP
user_id=user_id,
device_ids=list(device_ids),
)
@@ -909,7 +908,7 @@ class DeviceHandler:
user_ids: The Matrix IDs of the users that have changed.
"""
await self._notify_user_signature_update_client(
instance_name=random.choice(self._device_list_writers),
instance_name=self._device_list_writers[-1], # TEMP
from_user_id=from_user_id,
user_ids=user_ids,
)

View File

@@ -144,6 +144,9 @@ class RdataCommand(Command):
self.token = token
self.row = row
def __repr__(self) -> str:
return f"RdataCommand(stream={self.stream_name!r}, instance={self.instance_name!r}, position={self.token!r}, row=...)"
@classmethod
def from_line(cls: Type["RdataCommand"], line: str) -> "RdataCommand":
stream_name, instance_name, token, row_json = line.split(" ", 3)