Fix length of bridge bytes and rdsys request interval

This commit is contained in:
onyinyang 2024-01-10 14:45:40 -05:00
parent 1702027cb9
commit 6afc557ad5
3 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -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(

View File

@ -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;