Skip to content

Commit

Permalink
debug receiver模块
Browse files Browse the repository at this point in the history
  • Loading branch information
Mooling0602 committed Nov 6, 2024
1 parent a3cbba0 commit 88b425e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion matrix_sync/sync/receiver.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,10 @@ def on_sync_response(response: SyncResponse):
global refresh, next_batch
if refresh:
next_batch = response.next_batch
psi.logger.info(f"Get 'next_batch': {next_batch}")
refresh = False
else:
pass
psi.logger.info("syncing...")

def on_sync_error(response: SyncError):
global homeserver_online
Expand All @@ -72,6 +73,7 @@ async def getMsg() -> None:
client.add_event_callback(message_callback, RoomMessageText)

await client.sync(timeout=5)
psi.logger.info("Fist sync finished!")

try:
if homeserver_online:
Expand Down

0 comments on commit 88b425e

Please sign in to comment.