Skip to content

Commit

Permalink
Java: Do not use default API Client (#670)
Browse files Browse the repository at this point in the history
The default API client is not safe to reuse;
simply removing the use of it now until we
decide to undertake a more ambitious rewrite
of the default generated API.
  • Loading branch information
jaymell authored Oct 17, 2022
1 parent 894d923 commit 6a7df62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion java/lib/src/main/java/com/svix/Svix.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public Svix(final String token) {
}

public Svix(final String token, final SvixOptions options) {
ApiClient apiClient = Configuration.getDefaultApiClient();
ApiClient apiClient = new ApiClient();

String[] tokenParts = token.split("\\.");
String region = tokenParts[tokenParts.length - 1];
Expand Down

0 comments on commit 6a7df62

Please sign in to comment.