Skip to content

Commit

Permalink
make the channel supplied to doProcess 'send only'
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Wilson committed Aug 11, 2024
1 parent 7a72cf9 commit 5446cc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graph.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func (g *graph) process(ctx context.Context, e *Event) (Status, error) {
// filter node's ID
// - the final node in a pipeline (a sink) finishes, and Status.complete contains
// the sink node's ID
func (g *graph) doProcess(ctx context.Context, node *linkedNode, e *Event, statusChan chan Status, wg *sync.WaitGroup) {
func (g *graph) doProcess(ctx context.Context, node *linkedNode, e *Event, statusChan chan<- Status, wg *sync.WaitGroup) {
defer wg.Done()

// Process the current Node
Expand Down

0 comments on commit 5446cc2

Please sign in to comment.