Skip error

This commit is contained in:
Daniel Mason 2021-10-08 13:29:54 +13:00
parent 02d088b33b
commit dde434015f
Signed by: idanoo
GPG key ID: 387387CDBC02F132

View file

@ -159,7 +159,7 @@ func loadRowsIntoCache(filePath string) {
break
}
if err != nil {
log.Fatal(err)
continue
}
// Skip header row
@ -172,11 +172,6 @@ func loadRowsIntoCache(filePath string) {
c := make([]string, 0)
c = append(c, row...)
if len(c) < 6 {
log.Printf("Skipping invalid row")
continue
}
st, et, err := parseRowTimes(c[4], c[5])
if err != nil {
continue