Skip to content

Commit

Permalink
v4.2.0: Retry requests on 500 and 504 responses (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
stanleyphu authored Dec 21, 2023
1 parent 871dcc0 commit edde94c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Use [Warrant](https://warrant.dev/) in server-side Java projects.
### Gradle

```groovy
implementation group: 'dev.warrant', name: 'warrant-java', version: '4.1.1'
implementation group: 'dev.warrant', name: 'warrant-java', version: '4.2.0'
```

### Maven
Expand All @@ -19,7 +19,7 @@ implementation group: 'dev.warrant', name: 'warrant-java', version: '4.1.1'
<dependency>
<groupId>dev.warrant</groupId>
<artifactId>warrant-java</artifactId>
<version>4.1.1</version>
<version>4.2.0</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
}

group = "dev.warrant"
version = "4.1.1"
version = "4.2.0"

repositories {
mavenCentral()
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/dev/warrant/WarrantBaseClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
import jakarta.ws.rs.core.UriBuilder;

public class WarrantBaseClient {
public static final String SDK_VERSION = "4.1.1";
public static final String SDK_VERSION = "4.2.0";
public static final String USER_AGENT = "warrant-java/" + SDK_VERSION;
public static final Integer MAX_RETRIES = 2;
public static final Duration MINIMUM_SLEEP_TIME = Duration.ofMillis(500);
Expand Down

0 comments on commit edde94c

Please sign in to comment.