close reporting channel

This commit is contained in:
Ben Grewell
2021-03-10 14:06:57 -08:00
parent 44a0f92611
commit 03d6ae7d3b
2 changed files with 2 additions and 2 deletions

1
.idea/workspace.xml generated
View File

@@ -3,7 +3,6 @@
<component name="ChangeListManager">
<list default="true" id="fc2840de-29dc-4fca-8e0e-a283562f60ca" name="Default Changelist" comment="">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/client.go" beforeDir="false" afterPath="$PROJECT_DIR$/client.go" afterDir="false" />
<change beforePath="$PROJECT_DIR$/reporter_linux.go" beforeDir="false" afterPath="$PROJECT_DIR$/reporter_linux.go" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />

View File

@@ -57,7 +57,6 @@ func (r *Reporter) runLogProcessor() {
}
for line := range tailer.Lines {
// TODO: For now this only cares about individual streams it ignores the sum lines
fmt.Println(line.Text)
if len(line.Text) > 5 {
id := line.Text[1:4]
stream, err := strconv.Atoi(strings.TrimSpace(id))
@@ -116,6 +115,8 @@ func (r *Reporter) runLogProcessor() {
}
if !r.running {
fmt.Println("reporter is finished. exiting")
close(r.ReportingChannel)
return
}
}