Skip to content

Commit 2d19ddd

Browse files
committed
pkg/fuzzer/queue: remove unnecessary Context usage
1 parent 1293872 commit 2d19ddd

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

pkg/fuzzer/queue/queue.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,6 @@ func (ds *DynamicSourceCtl) Next() *Request {
422422
// Deduplicator() keeps track of the previously run requests to avoid re-running them.
423423
type Deduplicator struct {
424424
mu sync.Mutex
425-
ctx context.Context
426425
source Source
427426
mm map[hash.Sig]*duplicateState
428427
}
@@ -432,9 +431,8 @@ type duplicateState struct {
432431
queued []*Request // duplicate requests waiting for the result.
433432
}
434433

435-
func Deduplicate(ctx context.Context, source Source) Source {
434+
func Deduplicate(source Source) Source {
436435
return &Deduplicator{
437-
ctx: ctx,
438436
source: source,
439437
mm: map[hash.Sig]*duplicateState{},
440438
}

pkg/vminfo/vminfo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ func New(ctx context.Context, cfg *Config) *Checker {
6969
executor := queue.Plain()
7070
return &Checker{
7171
checker: impl,
72-
source: queue.Deduplicate(ctx, executor),
72+
source: queue.Deduplicate(executor),
7373
checkContext: newCheckContext(ctx, cfg, impl, executor),
7474
}
7575
}

0 commit comments

Comments
 (0)