-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: remove RefCell adapter, implement RwLock sentry_interface
- Loading branch information
Showing
9 changed files
with
131 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,20 @@ | ||
#![deny(clippy::all)] | ||
|
||
use serde::{Deserialize, Serialize}; | ||
use std::error::Error; | ||
use std::fmt::{Display, Formatter, Result}; | ||
|
||
#[derive(Serialize, Deserialize, Debug, Clone, Eq, PartialEq)] | ||
pub enum ValidatorWorker { | ||
Configuration(String), | ||
Failed(String), | ||
} | ||
|
||
impl Error for ValidatorWorker {} | ||
|
||
#[derive(Serialize, Deserialize, Debug, Clone)] | ||
pub enum ValidatorWorkerError { | ||
ConfigurationError(String), | ||
InvalidValidatorEntry(String), | ||
impl Display for ValidatorWorker { | ||
fn fmt(&self, f: &mut Formatter<'_>) -> Result { | ||
match self { | ||
ValidatorWorker::Configuration(error) => write!(f, "Configuration error: {}", error), | ||
ValidatorWorker::Failed(error) => write!(f, "error: {}", error), | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.