diff options
Diffstat (limited to 'pkg/fuzzer/queue/queue.go')
| -rw-r--r-- | pkg/fuzzer/queue/queue.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/pkg/fuzzer/queue/queue.go b/pkg/fuzzer/queue/queue.go index 05d9cfbed..58c9f1561 100644 --- a/pkg/fuzzer/queue/queue.go +++ b/pkg/fuzzer/queue/queue.go @@ -422,7 +422,6 @@ func (ds *DynamicSourceCtl) Next() *Request { // Deduplicator() keeps track of the previously run requests to avoid re-running them. type Deduplicator struct { mu sync.Mutex - ctx context.Context source Source mm map[hash.Sig]*duplicateState } @@ -432,9 +431,8 @@ type duplicateState struct { queued []*Request // duplicate requests waiting for the result. } -func Deduplicate(ctx context.Context, source Source) Source { +func Deduplicate(source Source) Source { return &Deduplicator{ - ctx: ctx, source: source, mm: map[hash.Sig]*duplicateState{}, } |
