Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

Commit

Permalink
Correct naming
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaeling committed Oct 23, 2023
1 parent 0dc1132 commit a259d1b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions kuksa_databroker/databroker/src/grpc/kuksa_val_v1/val.rs
Original file line number Diff line number Diff line change
Expand Up @@ -411,18 +411,18 @@ impl proto::val_server::Val for broker::DataBroker {
if !valid_requests.is_empty() {
for (_, (regex, fields_set)) in valid_requests {
broker
.for_each_entry(|for_each_entry| {
let entry_path = &for_each_entry.metadata().path;
.for_each_entry(|entry| {
let entry_path = &entry.metadata().path;
if regex.is_match(entry_path) {
match entries.get(&for_each_entry.metadata().id) {
let id = &entry.metadata().id;
match entries.get(id) {
Some(fields) => {
let joined_set: HashSet<_> =
fields.union(&fields_set).cloned().collect();
entries.insert(for_each_entry.metadata().id, joined_set);
entries.insert(*id, joined_set);
}
None => {
entries
.insert(for_each_entry.metadata().id, fields_set.clone());
entries.insert(*id, fields_set.clone());
}
}
}
Expand Down

0 comments on commit a259d1b

Please sign in to comment.