Skip to content

Commit

Permalink
v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
HeySreelal committed Sep 8, 2024
1 parent 1c1b54e commit 0afb1ae
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 1.1.0

- New Transformer definition

# 1.0.9

- We don't mess around the `Bad Request` issues.
Expand Down
8 changes: 4 additions & 4 deletions lib/src/auto_retry_base.dart
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ class AutoRetry implements Transformer {
@override
Future<Map<String, dynamic>> transform(
APICaller call,
APIMethod method,
Payload payload,
) async {
APIMethod method, [
Payload? payload,
]) async {
int remainingAttempts = maxRetryAttempts;
int nextDelay = _initialDelay;

Expand All @@ -102,7 +102,7 @@ class AutoRetry implements Transformer {
rethrow;
}

_debugLog("[Exception]: ${e.code} | ${e.description}");
_debugLog("Caught ${e.code} | ${e.description}");

if (e.code == 400) {
_debugLog(
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: auto_retry
description: The AutoRetry plugin for Televerse automatically retries failed API requests, handling rate limits and server errors to improve your bot's reliability and uptime.
version: 1.0.9
version: 1.1.0
repository: https://github.com/xooniverse/auto_retry
homepage: https://televerse.xooniverse.com

environment:
sdk: ">=3.0.0 <4.0.0"

dependencies:
televerse: ^1.23.0
televerse: ^1.26.0

dev_dependencies:
lints: ^3.0.0
Expand Down

0 comments on commit 0afb1ae

Please sign in to comment.