Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
cgardens committed May 31, 2023
1 parent d227a7e commit 6dc7de7
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ protected void writeRecord(final AirbyteRecordMessage record) throws IOException

@Override
protected void flushWriter() throws IOException {
// in an async world, it is possible that flush writer gets called even if no records were accepted.
if (csvPrinter != null) {
csvPrinter.flush();
} else {
Expand All @@ -75,6 +76,7 @@ protected void flushWriter() throws IOException {

@Override
protected void closeWriter() throws IOException {
// in an async world, it is possible that flush writer gets called even if no records were accepted.
if (csvPrinter != null) {
csvPrinter.close();
} else {
Expand Down

0 comments on commit 6dc7de7

Please sign in to comment.