优化性能
This commit is contained in:
@@ -68,7 +68,7 @@ public class FileInputService : IInputService
|
||||
foreach (var info in orderedInfo)
|
||||
{
|
||||
_logger.LogInformation("Reading file: {FileName}, table: {TableName}", info.FileName, info.TableName);
|
||||
var source = _dataReaderFactory.CreateReader(info.FileName,info.TableName,info.Headers);
|
||||
using var source = _dataReaderFactory.CreateReader(info.FileName,info.TableName,info.Headers);
|
||||
|
||||
while (await source.ReadAsync())
|
||||
{
|
||||
|
Reference in New Issue
Block a user