@@ -15,10 +15,10 @@ import (
15
15
var partitionNameRegex = regexp .MustCompile (`-part[0-9]+$` )
16
16
17
17
// ListingCache polls the filesystem at the specified directory once per
18
- // periodand checks each non-directory entry for a symlink. The results are
19
- // cached. Changes to the cache are logged, as well as the full contents of the
20
- // cache. The cache's Run() method is expected to be called in a goroutine.
21
- // Its cancellation is controlled via the context argument.
18
+ // period and checks each non-directory entry for a symlink. The results are
19
+ // cached. Changes to the cache are logged, as well as the full contents of the
20
+ // cache. The cache's Run() method is expected to be called in a goroutine. Its
21
+ // cancellation is controlled via the context argument.
22
22
type ListingCache struct {
23
23
period time.Duration
24
24
dir string
@@ -33,9 +33,9 @@ func NewListingCache(period time.Duration, dir string) *ListingCache {
33
33
}
34
34
}
35
35
36
- // Run starts the cache's background loop. The filesystem is listed and the
37
- // cache updated according to the frequency specified by the period. It will run
38
- // until the context is cancelled.
36
+ // Run starts the cache's background loop. The filesystem is listed and the cache
37
+ // updated according to the frequency specified by the period. It will run until
38
+ // the context is cancelled.
39
39
func (l * ListingCache ) Run (ctx context.Context ) {
40
40
// Start the loop that runs every minute
41
41
ticker := time .NewTicker (l .period )
0 commit comments