Skip to content

Commit d4bde0a

Browse files
committed
Some doc comment updates
1 parent 8f34a1f commit d4bde0a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

pkg/linkcache/cache.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ import (
1515
var partitionNameRegex = regexp.MustCompile(`-part[0-9]+$`)
1616

1717
// 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.
2222
type ListingCache struct {
2323
period time.Duration
2424
dir string
@@ -33,9 +33,9 @@ func NewListingCache(period time.Duration, dir string) *ListingCache {
3333
}
3434
}
3535

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.
3939
func (l *ListingCache) Run(ctx context.Context) {
4040
// Start the loop that runs every minute
4141
ticker := time.NewTicker(l.period)

0 commit comments

Comments
 (0)