Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename datapoints #108

Merged
merged 1 commit into from
Nov 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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