Adapt to updated deps
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user