Skip to content

Commit

Permalink
Fix backward compatibility with other plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
bivashy committed Oct 3, 2023
1 parent abcf0d3 commit 1fe7a69
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions api/src/main/java/ua/nanit/limbo/configuration/LimboConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,20 @@ public interface LimboConfig {

int getWorkerGroupSize();

boolean isUseTrafficLimits();
default boolean isUseTrafficLimits() {
return false;
}

int getMaxPacketSize();
default int getMaxPacketSize() {
return -1;
}

int getMaxPacketsPerSec();
default int getMaxPacketsPerSec() {
return -1;
}

int getMaxBytesPerSec();
default int getMaxBytesPerSec() {
return -1;
}

}

0 comments on commit 1fe7a69

Please sign in to comment.