mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 01:27:31 +08:00
feat: Add graceful shutdown in drainer (#498)
This commit is contained in:
@ -11,6 +11,10 @@ pub enum DrainerError {
|
||||
ConfigurationError(config::ConfigError),
|
||||
#[error("Metrics initialization error")]
|
||||
MetricsError,
|
||||
#[error("Error while configuring signals: {0}")]
|
||||
SignalError(String),
|
||||
#[error("Unexpected error occurred: {0}")]
|
||||
UnexpectedError(String),
|
||||
}
|
||||
|
||||
pub type DrainerResult<T> = error_stack::Result<T, DrainerError>;
|
||||
|
||||
Reference in New Issue
Block a user