1
0
Fork 0

Don't forget to decode all rows in the test command

This commit is contained in:
Gregory Eremin 2018-11-11 15:04:07 +01:00
parent 749b2ed224
commit 8c8705581e
1 changed files with 7 additions and 0 deletions

View File

@ -46,6 +46,13 @@ func main() {
ts := time.Unix(int64(evt.Header.Timestamp), 0).Format(time.RFC3339)
log.Printf("Event received: %s %s, %d\n", evt.Header.Type.String(), ts, off)
off = evt.Header.NextOffset
if evt.Table != nil {
_, err := evt.DecodeRows()
if err != nil {
log.Fatalf("Failed to parse rows event: %v", err)
}
}
}
}