commits
This reverts commit 4d8e06b62e423f07df5623af237973e9a4384b7a.
If last time_us is older than a week, we discard it and start over.
This also refreshes the saved last time_us in the database.
As much as possible. The atproto libs aren't themselves consistent about this.
* lexicon: add sh.tangled.knot.policy
* i ran lexgen
* i ran nix fmt
---------
Co-authored-by: Akshay <nerdy@peppe.rs>
When the knot is initialized, the h.init channel is closed signalling
the Jetstream watcher to begin, with the owner DID in filter. There's no
null filter so starting it without any DIDs will give us events for all
DIDs. /init also checks if h.knotInitialized is true, and will 409
Conflict if /init is called again.
PUT /user is similar, but will only trigger a call to UpdateDids.
When the knot is initialized, the h.init channel is closed signalling
the Jetstream watcher to begin, with the owner DID in filter. There's no
null filter so starting it without any DIDs will give us events for all
DIDs. /init also checks if h.knotInitialized is true, and will 409
Conflict if /init is called again.
PUT /user is similar, but will only trigger a call to UpdateDids.