Skip to content

Commit dd1025b

Browse files
committed
sentry - fix typo in events aggregates route regex
1 parent de1da60 commit dd1025b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sentry/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ lazy_static! {
4646
static ref CHANNEL_STATUS_BY_CHANNEL_ID: Regex = Regex::new(r"^/channel/0x([a-zA-Z0-9]{64})/status/?$").expect("The regex should be valid");
4747
// Only the initial Regex to be matched.
4848
static ref CHANNEL_VALIDATOR_MESSAGES: Regex = Regex::new(r"^/channel/0x([a-zA-Z0-9]{64})/validator-messages(/.*)?$").expect("The regex should be valid");
49-
static ref CHANNEL_EVENT_AGGREGATES: Regex = Regex::new(r"^/channel/0x([a-zA-Z0-9]{64})/event-aggregates(/|/0x[a-zA-Z0-9]{40}/?)?$").expect("The regex should be valid");
49+
static ref CHANNEL_EVENTS_AGGREGATES: Regex = Regex::new(r"^/channel/0x([a-zA-Z0-9]{64})/events-aggregates(/|/0x[a-zA-Z0-9]{40}/?)?$").expect("The regex should be valid");
5050
// @TODO define other regex routes
5151
}
5252

@@ -185,7 +185,7 @@ impl<A: Adapter + 'static> Application<A> {
185185

186186
list_validator_messages(req, &self, &extract_params.0, &extract_params.1).await
187187
} else if let (Some(caps), &Method::GET) =
188-
(CHANNEL_EVENT_AGGREGATES.captures(path), method)
188+
(CHANNEL_EVENTS_AGGREGATES.captures(path), method)
189189
{
190190
if req.extensions().get::<Session>().is_none() {
191191
return map_response_error(ResponseError::Unauthorized);

0 commit comments

Comments
 (0)