Csv handling - disables csFastFloat (unused, regardless)
This commit is contained in:
parent
69b2de4613
commit
9108b782d6
1 changed files with 6 additions and 6 deletions
|
|
@ -21,6 +21,11 @@ public sealed class KeaDhcpLeaseWatcher : IHostedService
|
|||
Options = FileOptions.SequentialScan | FileOptions.Asynchronous,
|
||||
Share = (FileShare)7,
|
||||
};
|
||||
private static readonly SepReaderOptions MemfileReader = Sep.New(',').Reader(o => o with
|
||||
{
|
||||
DisableColCountCheck = true,
|
||||
DisableFastFloat = true
|
||||
});
|
||||
|
||||
private readonly Decoder _decoder;
|
||||
private readonly FileSystemWatcher _fsw;
|
||||
|
|
@ -165,11 +170,7 @@ public sealed class KeaDhcpLeaseWatcher : IHostedService
|
|||
{
|
||||
if (reader is null)
|
||||
{
|
||||
reader = Sep.New(',').Reader(o => o with
|
||||
{
|
||||
DisableColCountCheck = true,
|
||||
Unescape = false
|
||||
}).From(_pipe.Reader.AsStream());
|
||||
reader = MemfileReader.From(_pipe.Reader.AsStream());
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
@ -252,7 +253,6 @@ public sealed class KeaDhcpLeaseWatcher : IHostedService
|
|||
task.GetAwaiter().GetResult();
|
||||
}
|
||||
|
||||
|
||||
private void OnLeaseError(object sender, ErrorEventArgs e)
|
||||
{
|
||||
_eventChannel?.Writer.Complete(e.GetException());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue