Fix length of bridge bytes and rdsys request interval
This commit is contained in:
parent
1702027cb9
commit
6afc557ad5
File diff suppressed because one or more lines are too long
|
@ -121,7 +121,7 @@ async fn rdsys_request_creator(
|
|||
// Makes a request to rdsys for the full set of Resources assigned to lox every interval
|
||||
// (defined in the function)
|
||||
async fn rdsys_request(rtype: ResourceInfo, tx: mpsc::Sender<ResourceState>) {
|
||||
let mut interval = interval(Duration::from_secs(5));
|
||||
let mut interval = interval(Duration::from_secs(120));
|
||||
loop {
|
||||
interval.tick().await;
|
||||
let resources = match request_resources(
|
||||
|
|
|
@ -25,7 +25,7 @@ use std::convert::{TryFrom, TryInto};
|
|||
use subtle::ConstantTimeEq;
|
||||
|
||||
/// Each bridge information line is serialized into this many bytes
|
||||
pub const BRIDGE_BYTES: usize = 200;
|
||||
pub const BRIDGE_BYTES: usize = 250;
|
||||
|
||||
/// The max number of bridges per bucket
|
||||
pub const MAX_BRIDGES_PER_BUCKET: usize = 3;
|
||||
|
|
Loading…
Reference in New Issue