Skip to content
This repository was archived by the owner on Jul 31, 2022. It is now read-only.

Commit 412c979

Browse files
committed
Update ConnectionThrottler.java
1 parent b8ff432 commit 412c979

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/main/java/com/kttdevelopment/simplehttpserver/handler/ConnectionThrottler.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ public class ConnectionThrottler {
1414

1515
private int maxConnections = 0;
1616

17-
public ConnectionThrottler(final HttpSession server){
17+
public ConnectionThrottler(){
1818
contributeToLimit = (exchange) -> true;
1919
}
2020

21-
public ConnectionThrottler(final HttpSession server, final Predicate<HttpExchange> counts){
21+
public ConnectionThrottler(final Predicate<HttpExchange> counts){
2222
this.contributeToLimit = counts;
2323
}
2424

@@ -46,7 +46,6 @@ public String toString(){
4646
final StringBuilder OUT = new StringBuilder();
4747

4848
OUT.append("ConnectionThrottler") .append('{');
49-
OUT.append("server") .append('=') .append(server.toString()) .append(", ");
5049
OUT.append("connections") .append('=') .append(connections) .append(", ");
5150
OUT.append("maxConnections") .append('=') .append(maxConnections);
5251
OUT.append('}');

0 commit comments

Comments
 (0)