Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

mailru: use variable type int instead of time.Duration for keeping number of seconds

albertony5006ede26607
diff --git a/backend/mailru/mailru.go b/backend/mailru/mailru.go
index c1a51cf4a..033f1d16d 100644
--- a/backend/mailru/mailru.go
+++ b/backend/mailru/mailru.go
@@ -2277,7 +2277,7 @@ type serverPool struct {
pool pendingServerMap
mu sync.Mutex
path string
- expirySec time.Duration
+ expirySec int
fs *Fs
}
@@ -2384,7 +2384,7 @@ func (p *serverPool) addServer(url string, now time.Time) {
p.mu.Lock()
defer p.mu.Unlock()
- expiry := now.Add(p.expirySec * time.Second)
+ expiry := now.Add(time.Duration(p.expirySec) * time.Second)
expiryStr := []byte("-")
if p.fs.ci.LogLevel >= fs.LogLevelInfo {