withThrottling function

AutoNATOption withThrottling(
  1. int amount,
  2. Duration interval
)

Implementation

AutoNATOption withThrottling(int amount, Duration interval) {
  return AutoNATOption((AutoNATConfig c) {
    c.throttleGlobalMax = amount;
    c.throttleResetPeriod = interval;
    c.throttleResetJitter = Duration(microseconds: interval.inMicroseconds ~/ 4);
  });
}