Skip to content

Add periodic NTP sync task to Limewire#48

Open
ryw27 wants to merge 8 commits intomainfrom
periodic-ntp-sync
Open

Add periodic NTP sync task to Limewire#48
ryw27 wants to merge 8 commits intomainfrom
periodic-ntp-sync

Conversation

@ryw27
Copy link
Copy Markdown
Contributor

@ryw27 ryw27 commented Mar 10, 2026

No description provided.

Comment on lines +461 to +465
try:
send_ntp_sync(logger)
except Exception:
# send_ntp_sync already logs; we just want to avoid crashing the task
pass
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we need to avoid crashing the task, here. In general, I would like to try to avoid very broad try catch blocks, and most of the other send_ntp_syncs don't use a try catch block.

except Exception:
# send_ntp_sync already logs; we just want to avoid crashing the task
pass
await asyncio.sleep(60)

This comment was marked as resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants