1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2026-01-29 06:25:56 +00:00

Reformat *.go with goimports command

This commit is contained in:
James Hillyerd
2014-05-19 19:40:33 -07:00
parent 63084c67b9
commit 88ae99abb0
20 changed files with 62 additions and 42 deletions

View File

@@ -3,10 +3,11 @@ package smtpd
import (
"container/list"
"expvar"
"github.com/jhillyerd/inbucket/config"
"github.com/jhillyerd/inbucket/log"
"sync"
"time"
"github.com/jhillyerd/inbucket/config"
"github.com/jhillyerd/inbucket/log"
)
var retentionScanCompleted time.Time
@@ -30,8 +31,8 @@ func StartRetentionScanner(ds DataStore) {
if cfg.RetentionMinutes > 0 {
// Retention scanning enabled
log.LogInfo("Retention configured for %v minutes", cfg.RetentionMinutes)
go retentionScanner(ds, time.Duration(cfg.RetentionMinutes) * time.Minute,
time.Duration(cfg.RetentionSleep) * time.Millisecond)
go retentionScanner(ds, time.Duration(cfg.RetentionMinutes)*time.Minute,
time.Duration(cfg.RetentionSleep)*time.Millisecond)
} else {
log.LogInfo("Retention scanner disabled")
}