Skip to content

Commit b1c2702

Browse files
committed
QuestDb写入CSV文件更改为异步
1 parent 523a7ff commit b1c2702

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Providers/FreeSql.Provider.QuestDb/QuestDbGlobalExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ public static async Task<int> ExecuteBulkCopyAsync<T>(this IInsert<T> that) wher
197197
using (var writer = new StreamWriter(filePath))
198198
using (var csv = new CsvWriter(writer, CultureInfo.CurrentCulture))
199199
{
200-
csv.WriteRecords(insert._source);
200+
await csv.WriteRecordsAsync(insert._source);
201201
}
202202

203203
var httpContent = new MultipartFormDataContent(boundary);

0 commit comments

Comments
 (0)