Skip to content

Commit b168f02

Browse files
committed
Incr 6
1 parent 87bbd2b commit b168f02

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

databroker/src/grpc/kuksa_val_v2/val.rs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,6 @@ mod tests {
744744
}
745745
}
746746

747-
748747
// Helper for adding an int32 signal and adding value
749748
async fn helper_add_int32(
750749
broker: &DataBroker,
@@ -847,7 +846,9 @@ mod tests {
847846

848847
let request = proto::GetValueRequest {
849848
signal_id: Some(proto::SignalId {
850-
signal: Some(proto::signal_id::Signal::Path("test.datapoint1".to_string())),
849+
signal: Some(proto::signal_id::Signal::Path(
850+
"test.datapoint1".to_string(),
851+
)),
851852
}),
852853
};
853854

@@ -1008,7 +1009,9 @@ mod tests {
10081009

10091010
let request = proto::GetValueRequest {
10101011
signal_id: Some(proto::SignalId {
1011-
signal: Some(proto::signal_id::Signal::Path("test.datapoint1".to_string())),
1012+
signal: Some(proto::signal_id::Signal::Path(
1013+
"test.datapoint1".to_string(),
1014+
)),
10121015
}),
10131016
};
10141017

@@ -1083,7 +1086,7 @@ mod tests {
10831086
}
10841087
}
10851088
}
1086-
1089+
10871090
#[tokio::test]
10881091
async fn test_publish_value_signal_id_not_found() {
10891092
let broker = DataBroker::default();

proto/kuksa/val/v2/types.proto

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ message SignalID {
5858
// Numeric identifier to the signal
5959
// As of today Databroker assigns arbitrary unique numbers to each registered signal
6060
// at startup, meaning that identifiers may change after restarting Databroker.
61-
// A mechanism for static identifiers may be introduced in the future.
61+
// A mechanism for static identifiers may be introduced in the future.
6262
int32 id = 1;
6363
// Full VSS-style path to a specific signal, like "Vehicle.Speed"
6464
// Wildcards and paths to branches are not supported.
@@ -159,8 +159,8 @@ message ValueRestrictionString {
159159
repeated string allowed_values = 1;
160160
}
161161

162-
// Used to indicate status of a signal in Databroker
163-
// This is given as an alternative to Value, so if there is a valid value
162+
// Used to indicate status of a signal in Databroker
163+
// This is given as an alternative to Value, so if there is a valid value
164164
// ValueFailure shall not be specified.
165165
//
166166
// Scenarios where a signal does not exist or a user does not have access to a signal

0 commit comments

Comments
 (0)