Don't forget to decode all rows in the test command
This commit is contained in:
parent
749b2ed224
commit
8c8705581e
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user