diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-06 17:32:24 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-06 17:32:24 +0200 |
| commit | 1561987330cb898f5ff64383a9c78e7e6559f118 (patch) | |
| tree | 69a823e8f98dce572566c97e6879c11c9d591bda /internal/flamegraph/worker.go | |
| parent | 96225fb6159212a8851043a08d781aba721b4e78 (diff) | |
| parent | 110a193e04b81abb8d8e159abd73f9f6ed1acd7e (diff) | |
Merge branch 'feat/bubbletea-v2-migration'
Diffstat (limited to 'internal/flamegraph/worker.go')
| -rw-r--r-- | internal/flamegraph/worker.go | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/internal/flamegraph/worker.go b/internal/flamegraph/worker.go deleted file mode 100644 index 0f49568..0000000 --- a/internal/flamegraph/worker.go +++ /dev/null @@ -1,33 +0,0 @@ -package flamegraph - -import ( - "context" - "ior/internal/event" - "sync" -) - -type worker struct { - iod iorData - done chan struct{} -} - -func newWorker() worker { - return worker{iod: newIorData()} -} - -func (w worker) run(ctx context.Context, wg *sync.WaitGroup, ch <-chan *event.Pair) { - defer wg.Done() - - for { - select { - case ev, ok := <-ch: - if !ok { - return - } - w.iod.addEventPair(ev) - ev.Recycle() - case <-ctx.Done(): - return - } - } -} |
