mod sync and archive plugin

This commit is contained in:
royalcat 2025-03-22 23:23:30 +04:00
parent 3f01d7032f
commit 237af4a63e
16 changed files with 432 additions and 51 deletions
plugins/qbittorrent

View file

@ -42,7 +42,7 @@ func wrapClient(qb qbittorrent.Client) *cacheClient {
propertiesCache: expirable.NewLRU[string, qbittorrent.TorrentProperties](cacheSize, nil, cacheTTL),
infoClient: sturdyc.New[*qbittorrent.TorrentInfo](cacheSize, 1, cacheTTL, 10,
sturdyc.WithEarlyRefreshes(time.Minute, time.Minute*5, time.Second*10, time.Second*10),
sturdyc.WithEarlyRefreshes(time.Minute, time.Minute*2, time.Minute*3, time.Second*10),
sturdyc.WithRefreshCoalescing(100, time.Second/4),
sturdyc.WithMetrics(newSturdycMetrics()),
),