Skip to content

Commit

Permalink
fix: ensure the variable len is applied
Browse files Browse the repository at this point in the history
  • Loading branch information
glihm committed Dec 12, 2024
1 parent bcd581e commit 1c13dea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/torii/grpc/src/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1124,7 +1124,7 @@ fn build_keys_pattern(clause: &proto::types::KeysClause) -> Result<String, Error
let mut keys_pattern = format!("^{}", keys.join("/"));

if clause.pattern_matching == proto::types::PatternMatching::VariableLen as i32 {
keys_pattern += &format!("({})*", KEY_PATTERN);
keys_pattern += &format!("(/{})*", KEY_PATTERN);

Check warning on line 1127 in crates/torii/grpc/src/server/mod.rs

View check run for this annotation

Codecov / codecov/patch

crates/torii/grpc/src/server/mod.rs#L1127

Added line #L1127 was not covered by tests
}
keys_pattern += "/$";

Expand Down

0 comments on commit 1c13dea

Please sign in to comment.