Skip to content

Commit c5e952c

Browse files
etbyrdwesm
authored andcommitted
Add missing rows.Err() check in EnsureParticipantsBatch
1 parent 3d5b74b commit c5e952c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/store/messages.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,9 @@ func (s *Store) EnsureParticipantsBatch(addresses []mime.Address) (map[string]in
325325
result[email] = id
326326
}
327327
rows.Close()
328+
if err := rows.Err(); err != nil {
329+
return nil, err
330+
}
328331
}
329332

330333
return result, nil

0 commit comments

Comments
 (0)