File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -29,8 +29,9 @@ const (
29
29
30
30
var _ internal.Provider = (* SweepingProvider )(nil )
31
31
32
- // SweepingProvider implements a buffered provider that queues operations and
33
- // processes them asynchronously in batches.
32
+ // buffered.SweepingProvider is a wrapper around a SweepingProvider buffering
33
+ // requests, to allow core operations to return instantly. Operations are
34
+ // queued and processed asynchronously in batches for improved performance.
34
35
type SweepingProvider struct {
35
36
closeOnce sync.Once
36
37
done chan struct {}
@@ -149,6 +150,8 @@ func (s *SweepingProvider) worker() {
149
150
logger .Warnf ("BufferedSweepingProvider unable to parse dequeued item: %v" , err )
150
151
continue
151
152
}
153
+ // Execute the 4 kinds of queued provider operations on the underlying
154
+ // provider.
152
155
153
156
// Process `StartProviding` (force=true) ops first, so that if
154
157
// `StartProviding` (force=false) is called after, there is no need to
You can’t perform that action at this time.
0 commit comments