Skip to content

Commit 3a0bd64

Browse files
committed
Rebase
1 parent 7a55584 commit 3a0bd64

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

databroker/src/viss/v2/server.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -102,20 +102,14 @@ impl Viss for Server {
102102
metadata,
103103
}));
104104
} else if let Some(Filter::Paths(paths_filter)) = &request.filter {
105+
let request_path = request.path.as_ref();
105106
if request.path.as_ref().contains('*') {
106107
return Err(GetErrorResponse {
107108
request_id,
108109
ts: SystemTime::now().into(),
109110
error: Error::NotFoundInvalidPath,
110111
});
111112
}
112-
for path in &paths_filter.parameter {
113-
let new_path = format!("{}{}", request.path.clone().as_ref(), path);
114-
if let Ok(matcher) = Matcher::new(&new_path) {
115-
request_matcher.push((matcher, request.path.clone().into(), false));
116-
}
117-
}
118-
}
119113

120114
let permissions = resolve_permissions(&self.authorization, &request.authorization)
121115
.map_err(|error| GetErrorResponse {

0 commit comments

Comments
 (0)