refactor(drainer): change logic for trimming the stream and refactor for modularity (#3128)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Kartikeya Hegde
2024-01-08 18:12:13 +05:30
committed by GitHub
parent 3cd74966b2
commit de7a607e66
12 changed files with 636 additions and 486 deletions

View File

@ -11,6 +11,8 @@ pub enum DrainerError {
ConfigurationError(config::ConfigError),
#[error("Error while configuring signals: {0}")]
SignalError(String),
#[error("Error while parsing data from the stream: {0:?}")]
ParsingError(error_stack::Report<common_utils::errors::ParsingError>),
#[error("Unexpected error occurred: {0}")]
UnexpectedError(String),
}