Add Flush method to sink interface

This commit is contained in:
Lou Knauer
2021-10-12 13:43:58 +02:00
parent dc4b8d13c2
commit cdc1811576
5 changed files with 21 additions and 2 deletions

View File

@@ -269,6 +269,10 @@ func main() {
tmpPoints = tmpPoints[1:]
}
}
if err := sink.Flush(); err != nil {
log.Printf("sink error: %s\n", err)
}
}
}
}()