Skip to content

Commit

Permalink
fix flush return error (#33)
Browse files Browse the repository at this point in the history
Signed-off-by: yeya24 <[email protected]>
  • Loading branch information
yeya24 authored Mar 19, 2020
1 parent 2aaeb27 commit 3bcad8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/load/batch_loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func (b *CSVBatchLoader) InsertValue(ctx context.Context, columns []string) erro
// Flush inserts all pending values
func (b *CSVBatchLoader) Flush(ctx context.Context) error {
b.writer.Flush()
return nil
return b.writer.Error()
}

// Close closes the file.
Expand Down

0 comments on commit 3bcad8e

Please sign in to comment.