Skip to content

Commit 502d6ab

Browse files
committed
fix: sentry types
1 parent 643093e commit 502d6ab

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

primitives/src/analytics.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,6 @@ pub struct AnalyticsQuery {
5050
}
5151

5252
impl AnalyticsQuery {
53-
pub fn metric_to_column(&mut self) {
54-
self.metric = match self.metric.as_str() {
55-
"eventCounts" => "count".to_string(),
56-
"eventPayouts" => "payout".to_string(),
57-
_ => "count".to_string(),
58-
};
59-
}
6053
pub fn is_valid(&self) -> Result<(), DomainError> {
6154
let valid_event_types = ["IMPRESSION", "CLICK"];
6255
let valid_metric = ["eventPayouts", "eventCounts"];

primitives/src/sentry.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ pub struct ApproveStateValidatorMessage {
3131

3232
#[derive(Serialize, Deserialize, Debug)]
3333
pub struct HeartbeatValidatorMessage {
34-
pub from: String,
34+
pub from: ValidatorId,
3535
pub received: DateTime<Utc>,
3636
pub msg: MessageTypes,
3737
}

validator.env.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ ADAPTER=dummy
33
DUMMY_IDENTITY=ce07CbB7e054514D590a0262C93070D838bFBA2e
44
# for Ethereum adapter
55
#KEYSTORE_FILE="/app/keystore.json"
6-
#KEYSTORE_PWD="adexvalidator"
6+
#KEYSTORE_PWD="adexvalidator"

0 commit comments

Comments
 (0)