Adapt to updated deps

This commit is contained in:
Dominik Werder
2022-12-06 15:08:32 +01:00
parent 3583862498
commit 53bbd2b99c
7 changed files with 281 additions and 144 deletions

View File

@@ -817,7 +817,7 @@ impl CaConn {
shape,
agg_kind: netpod::AggKind::Plain,
// TODO these play no role in series id:
byte_order: netpod::ByteOrder::LE,
byte_order: netpod::ByteOrder::Little,
compression: None,
};
cx.waker().wake_by_ref();
@@ -1236,7 +1236,7 @@ impl CaConn {
shape,
agg_kind: netpod::AggKind::Plain,
// TODO these play no role in series id:
byte_order: netpod::ByteOrder::LE,
byte_order: netpod::ByteOrder::Little,
compression: None,
};
let z = unsafe {

View File

@@ -286,8 +286,11 @@ impl CaConnSet {
pub async fn addr_nth_mod(&self, n: usize) -> Option<SocketAddr> {
let g = self.ca_conn_ress.lock().await;
let u = g.len();
let n = n % u;
let len = g.len();
if len < 1 {
return None;
}
let n = n % len;
g.keys().take(n).last().map(Clone::clone)
}
}