bingobot/internal
Ava Affine d818e8c158 Handle interrupts and panics to mitigate data loss
This commit introduces a deferred call to a state teardown function
This is needed to properly flush data to the backing documentbuffer
as well as to truncate its underlying store. In doing so we make
sure data loss from process termination is minimal to nil.

when ever a panic happens or a signal is thrown the call to Teardown() is made

Signed-off-by: Ava Affine <ava@sunnypup.io>
2024-12-05 16:44:18 -08:00
..
config initialize state package in main.go 2024-12-05 16:40:34 -08:00
discord inline _activityTimerExists() into stopActivityTimer() 2024-11-14 10:58:15 -08:00
docbuf Extend DocumentBuffer with apply interface 2024-12-05 16:40:34 -08:00
logging Remove source info from log messages 2024-11-13 17:02:47 -08:00
state Handle interrupts and panics to mitigate data loss 2024-12-05 16:44:18 -08:00