1
0
mirror of https://github.com/rclone/rclone.git synced 2025-12-04 13:49:49 +02:00
Files
rclone/backend/cache/cache.go
Nick Craig-Wood 7bb8b8f4ba cache: fix bug after golang.org/x/time/rate update
Before this change the cache backend was passing -1 into
rate.NewLimiter to mean unlimited transactions per second.

In a recent update this immediately returns a rate limit error as
might be expected.

This patch uses rate.Inf as indicated by the docs to signal no limits
are required.
2022-04-04 20:35:17 +01:00

58 KiB