Skip to content

Commit a73b525

Browse files
committed
Ignore unknown commands.
1 parent 7443b24 commit a73b525

File tree

3 files changed

+3
-3
lines changed
  • chirpstack-concentratord-2g4/src/handler
  • chirpstack-concentratord-sx1301/src/handler
  • chirpstack-concentratord-sx1302/src/handler

3 files changed

+3
-3
lines changed

chirpstack-concentratord-2g4/src/handler/command.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ pub fn handle_loop(
6363
updated_at: None,
6464
}
6565
.encode_to_vec(),
66-
None => Vec::new(),
66+
_ => Vec::new(),
6767
},
6868
Err(e) => match e {
6969
libconcentratord::error::Error::Timeout => continue,

chirpstack-concentratord-sx1301/src/handler/command.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ pub fn handle_loop(
6464
.map(|v| Into::<SystemTime>::into(v).try_into().unwrap_or_default()),
6565
}
6666
.encode_to_vec(),
67-
None => Vec::new(),
67+
_ => Vec::new(),
6868
},
6969
Err(e) => match e {
7070
libconcentratord::error::Error::Timeout => continue,

chirpstack-concentratord-sx1302/src/handler/command.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ pub fn handle_loop(
6161
.map(|v| Into::<SystemTime>::into(v).try_into().unwrap_or_default()),
6262
}
6363
.encode_to_vec(),
64-
None => Vec::new(),
64+
_ => Vec::new(),
6565
},
6666
Err(e) => match e {
6767
libconcentratord::error::Error::Timeout => continue,

0 commit comments

Comments
 (0)