Skip to content

Commit

Permalink
use latest rmp-serde crate
Browse files Browse the repository at this point in the history
  • Loading branch information
Will committed Feb 13, 2024
1 parent eb57bb5 commit 0a05343
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "kentik-api"
version = "0.0.5"
version = "0.0.6"
authors = ["Will <[email protected]>"]
edition = "2018"

Expand All @@ -11,7 +11,7 @@ crossbeam-channel = "0.5.11"
futures = "0.3.30"
futures-retry = "0.6.0"
log = "0.4.20"
rmp-serde = "0.13.7"
rmp-serde = "1.1.2"
serde_bytes = "0.11.14"

[dependencies.reqwest]
Expand Down
2 changes: 1 addition & 1 deletion src/dns/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ fn poll(rx: Receiver<Vec<Response>>, c: AsyncClient) -> Result<(), Error> {

loop {
let mut encode = |rs: Vec<Response>| -> Result<(), Error> {
let mut s = Serializer::new_named(&mut buf);
let mut s = Serializer::new(&mut buf).with_struct_map();
rs.into_iter().map(|r: Response| -> Result<(), Error> {
Ok(r.serialize(&mut s)?)
}).collect::<Result<_, _>>()
Expand Down
2 changes: 1 addition & 1 deletion tests/dns.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ fn send_dns_batch() {
let interval = Duration::from_secs(1);
let request = server.request(interval * 2).unwrap();
let body = request.body();
let mut de = Deserializer::from_slice(&body);
let mut de = Deserializer::from_read_ref(&body);

for record in records {
assert_eq!(record, Response::deserialize(&mut de).unwrap());
Expand Down

0 comments on commit 0a05343

Please sign in to comment.