Skip to content

Commit

Permalink
update: close out pipe if it stop
Browse files Browse the repository at this point in the history
  • Loading branch information
Esonhugh committed Jan 19, 2025
1 parent 6523093 commit 7a8f54d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/mutli/svc.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ func ScanServiceWithChan(rev <-chan define.Record) <-chan define.Record {
for records := range rev {
out <- scanner.ScanSingleSvcForPorts(records)
}
// close(out)
close(out)
log.Tracef("piped scanning service port ends")
}()
return out
Expand Down

0 comments on commit 7a8f54d

Please sign in to comment.