bingobot/internal/state
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
..
state.go Handle interrupts and panics to mitigate data loss 2024-12-05 16:44:18 -08:00
state_test.go Refactor state module to leverage DocumentBuffer 2024-12-05 16:40:34 -08:00