-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Refresh the contributing guide * Sync store groundwork * Introduce working sync store + unit tests * Run tests on all branches on push * Formatting * Properly close the client and sync store on shutdown Also fixes CI never finishing * Add context manager for sync store This allows start() to always call SyncStore.close(), even if the termination is abrupt. * Log when the sync store is managed via the context manager * typing.Self isn't in <3.11 * Log which rooms are added to the sync payload for replay * perform an upsert instead of INSERT/REPLACE for set_next_batch * Update the sync store test * Prevent logging shoving megabytes into the logs in debug mode * Properly close the db * Prevent handle_sync spewing the entire sync into logs * Why did start()'s initial sync have a timeout? * Fix timeline/state insertion not inserting the raw event * Fix get_next_batch & prevent handle_sync still spamming logs * Add state and timeline events incrementally even on join * Fix keyerror * Fix mismatched logging arguments * Use BLOBs for event storage rather than text Also uses orjson for super fast JSON parsing (which should help in large rooms where states are huge, like Matrix HQ) * Don't incrementally add state events on first join * Fix sync replay holding invalid formats * Don't fail with an invalid event with no source * Reformat * Fix source fallback falling back to the dataclass * Automatically checkpoint every 25 changes * Fix autosaving after every sync after 25 total changes * Reformat * Reject bad events in insert_{state,timeline}_event * reformatting
- Loading branch information
Showing
9 changed files
with
688 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,5 @@ blurhash-python~=1.2 | |
pillow>=9.3.0 | ||
beautifulsoup4~=4.12 | ||
pydantic~=2.9 | ||
aiosqlite~=0.20 | ||
orjson~=3.10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.