Skip to content

Commit

Permalink
close stream
Browse files Browse the repository at this point in the history
  • Loading branch information
solidiquis committed Nov 15, 2024
1 parent 359d271 commit 52b2b5b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions go/examples/ingestion/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,12 @@ func main() {
log.Println("ingested a log flow")
}
}

// Close the stream when finished and check if there are any errors
if _, err := siftStream.CloseAndRecv(); err != nil {
log.Fatalln(err)
}

log.Println("done.")
}

Expand Down

0 comments on commit 52b2b5b

Please sign in to comment.