Skip to content

Commit

Permalink
Reduced buffer on MB rate limit.
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixRilling committed Dec 27, 2023
1 parent 1e89d1d commit 807479e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ private static String getClient(String applicationName, String applicationVersio
Bucket musicbrainzBucket() {
// See per-IP-address limit https://musicbrainz.org/doc/MusicBrainz_API/Rate_Limiting,
// further slowed down to adapt for network fluctuations.
Bandwidth bandwidth = Bandwidth.simple(1, Duration.ofMillis(2500));
Bandwidth bandwidth = Bandwidth.simple(1, Duration.ofMillis(1500));

return Bucket.builder().addLimit(bandwidth).build().toListenable(new LoggingBucketListener("musicbrainz"));
}
Expand Down

0 comments on commit 807479e

Please sign in to comment.