Disable local limiting for now
Doesn't really work properly and mostly just causes strange problems
@@ -409,16 +409,16 @@ impl Handler<Tick> for ExitManager {
}
// Self limit bandwidth consumption if we have a low balance
- let free_tier_throughput = SETTING.get_payment().free_tier_throughput;
- if self.last_exit.is_some() && low_balance() && !self.local_limiting {
- warn!("Balance is low! sending notification and limiting usage");
- let _ = KI.set_classless_limit("wg_exit", free_tier_throughput);
- self.local_limiting = true;
- } else if self.last_exit.is_some() && !low_balance() && self.local_limiting {
- info!("Balance is above the payment level, removing local limits");
- let _ = KI.delete_qdisc("wg_exit");
- self.local_limiting = false;
- }
+ // let free_tier_throughput = SETTING.get_payment().free_tier_throughput;
+ // if self.last_exit.is_some() && low_balance() && !self.local_limiting {
+ // warn!("Balance is low! sending notification and limiting usage");
+ // let _ = KI.set_classless_limit("wg_exit", free_tier_throughput);
+ // self.local_limiting = true;
+ // } else if self.last_exit.is_some() && !low_balance() && self.local_limiting {
+ // info!("Balance is above the payment level, removing local limits");
+ // let _ = KI.delete_qdisc("wg_exit");
+ // self.local_limiting = false;
+ // }
// code that manages requesting details to exits
let servers = { SETTING.get_exits().clone() };
