-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove StringOrBase64 * Fix cargo fmt * Use serde_json::from_reader * Align error text * Fix cargo clippy
- Loading branch information
Showing
8 changed files
with
65 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ | |
// ZettaScale Zenoh Team, <[email protected]> | ||
// | ||
use std::{ | ||
borrow::Cow, | ||
cmp::Ordering, | ||
collections::{BTreeSet, HashMap, HashSet}, | ||
str, | ||
|
@@ -20,8 +21,8 @@ use std::{ | |
|
||
use async_std::sync::Arc; | ||
use zenoh::{ | ||
bytes::StringOrBase64, key_expr::OwnedKeyExpr, prelude::*, sample::Sample, selector::Selector, | ||
time::Timestamp, value::Value, Session, | ||
key_expr::OwnedKeyExpr, prelude::*, sample::Sample, selector::Selector, time::Timestamp, | ||
value::Value, Session, | ||
}; | ||
|
||
use super::{digest::*, Snapshotter}; | ||
|
@@ -234,8 +235,11 @@ impl AlignQueryable { | |
tracing::trace!( | ||
"[ALIGN QUERYABLE] Received ('{}': '{}' @ {:?})", | ||
sample.key_expr().as_str(), | ||
StringOrBase64::from(sample.payload()), | ||
sample.timestamp() | ||
sample | ||
.payload() | ||
.deserialize::<Cow<str>>() | ||
.unwrap_or(Cow::Borrowed("<malformed>")), | ||
sample.timestamp(), | ||
); | ||
if let Some(timestamp) = sample.timestamp() { | ||
match timestamp.cmp(&logentry.timestamp) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters