Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
45gfg9 committed May 10, 2020
1 parent 014d9c4 commit e76e8e1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
3 changes: 1 addition & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,4 @@ compileTestKotlin {
kotlinOptions.jvmTarget = '11'
}

sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_11
2 changes: 1 addition & 1 deletion src/main/java/net/im45/bot/watcher/Request.java
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ private static HttpsURLConnection newConnection(String token) throws IOException
connection.setRequestProperty("User-Agent", "45gfg9/16.42");
connection.setRequestProperty("Accept-Encoding", "gzip");
connection.setRequestProperty("Authorization", "bearer " + token);
connection.setReadTimeout(5000);
connection.setReadTimeout(10000);
return connection;
}

Expand Down
3 changes: 0 additions & 3 deletions src/main/java/net/im45/bot/watcher/Util.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.*;
import java.util.function.Consumer;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
* Utility class.
Expand Down

0 comments on commit e76e8e1

Please sign in to comment.