ericvolp12 / jetstream

A simplified JSON event stream for AT Proto
MIT License
86 stars 3 forks source link

Cursor error handling #3

Open juni-b-queer opened 2 months ago

juni-b-queer commented 2 months ago

Addresses #2

Add functions for creating backups and their file names every 5 minutes, up to 10 backups. Add startup logic to attempt loading original cursor, fall back to backups, then fall back to live, instead of shutting down.

Unrelated, but I also found that having the Cid is super helpful for most requests, so I added it to the Event.