This commit refactors the event_reader_service.rs file by introducing a new
Rollback enum and modifying the resync_rollback field in the EventsReader struct to use this enum. The Rollback enum is used to specify different
types of rollbacks, including None, Beginning, and Signature. The res ync_rollback field is now of type Arc<RwLock<Rollback>>.
Additionally, a new method reset_last_resynced_transaction is added to the
ResyncedTransactionsPtrStorage trait and implemented for the rocksdb module
. This method allows resetting the last resynced transaction for a specific
program ID.
These changes improve the clarity and maintainability of the codebase.
This commit refactors the
event_reader_service.rs
file by introducing a newRollback
enum and modifying theresync_rollback
field in theEventsReader
struct to use this enum. TheRollback
enum is used to specify different types of rollbacks, includingNone
,Beginning
, andSignature
. Theres ync_rollback
field is now of typeArc<RwLock<Rollback>>
.Additionally, a new method
reset_last_resynced_transaction
is added to theResyncedTransactionsPtrStorage
trait and implemented for therocksdb
module . This method allows resetting the last resynced transaction for a specific program ID.These changes improve the clarity and maintainability of the codebase.