Skip to content

Commit

Permalink
docs: fixed for the issue (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
myConsciousness committed Mar 6, 2023
1 parent fbb3bbe commit 22f5bf6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release Note

4## v0.6.1

- `RetryConfig` allows users to configure `Jitter`. Any Jitter can be set by setting the `Jitter` object to `jitter` in `RetryConfig`. ([#144](https://github.com/mastodon-dart/mastodon-api/issues/144))

## v0.6.0

- Supported `directory API methods`. ([#37](https://github.com/mastodon-dart/mastodon-api/issues/37))
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,10 @@ Future<void> main() async {
//! when communicating with the API.
retryConfig: RetryConfig(
maxAttempts: 5,
jitter: Jitter(
minInSeconds: 2,
maxInSeconds: 5,
),
onExecute: (event) => print(
'Retry after ${event.intervalInSeconds} seconds... '
'[${event.retryCount} times]',
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: mastodon_api
description: The easiest and powerful Dart/Flutter library for Mastodon API.
version: 0.6.0
version: 0.6.1
repository: https://github.com/mastodon-dart/mastodon-api
issue_tracker: https://github.com/mastodon-dart/mastodon-api/issues

Expand Down

0 comments on commit 22f5bf6

Please sign in to comment.