Skip to content

Commit

Permalink
Rename datapoints
Browse files Browse the repository at this point in the history
  • Loading branch information
erikbosch committed Nov 25, 2024
1 parent 6763a66 commit a5314a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions databroker/src/grpc/kuksa_val_v2/val.rs
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,7 @@ async fn publish_values(
request: &databroker_proto::kuksa::val::v2::PublishValuesRequest,
) -> Option<OpenProviderStreamResponse> {
let ids: Vec<(i32, broker::EntryUpdate)> = request
.datapoints
.data_points
.iter()
.map(|(id, datapoint)| {
(
Expand Down Expand Up @@ -2132,7 +2132,7 @@ mod tests {
action: Some(open_provider_stream_request::Action::PublishValuesRequest(
PublishValuesRequest {
request_id,
datapoints: {
data_points: {
let timestamp = Some(std::time::SystemTime::now().into());

let value = proto::Value {
Expand Down
2 changes: 1 addition & 1 deletion proto/kuksa/val/v2/val.proto
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ message PublishValueResponse {

message PublishValuesRequest {
int32 request_id = 1; /// Unique request id for the stream that can be used to identify the response.
map<int32, Datapoint> datapoints = 2;
map<int32, Datapoint> data_points = 2;
}

message PublishValuesResponse {
Expand Down

0 comments on commit a5314a6

Please sign in to comment.