Skip to content

Commit

Permalink
perf: fix code error
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeEirc committed Jan 15, 2025
1 parent f2307fa commit ff3bdce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/impl/jms.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ func (j *JMServer) ScanRemainReplays(ctx context.Context, req *pb.RemainReplayRe
}

func (j *JMServer) sendStreamTask(ctx context.Context, stream pb.Service_DispatchTaskServer) {
taskChan := j.beat.GetTerminalTaskChan()
taskChan := j.beat.GetTerminalTaskChan(ctx)
for {
select {
case <-ctx.Done():
Expand Down

0 comments on commit ff3bdce

Please sign in to comment.