mirror of
https://github.com/RPCS3/discord-bot.git
synced 2024-12-03 16:32:37 +00:00
for some reason pipe reader decided to break on advance with specified examined position
also updated some deps
This commit is contained in:
parent
064beedc30
commit
0ed01739c1
@ -16,13 +16,13 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="DSharpPlus" Version="4.0.0-beta-00508" />
|
||||
<PackageReference Include="DSharpPlus.CommandsNext" Version="4.0.0-beta-00508" />
|
||||
<PackageReference Include="DSharpPlus" Version="4.0.0-beta-00513" />
|
||||
<PackageReference Include="DSharpPlus.CommandsNext" Version="4.0.0-beta-00513" />
|
||||
<PackageReference Include="MathParser.org-mXparser" Version="4.2.1" />
|
||||
<PackageReference Include="Microsoft.AspNet.WebApi.Client" Version="5.2.6" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="2.1.1" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="2.1.1" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="2.1.1" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="2.1.2" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="2.1.2" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="2.1.2" />
|
||||
<PackageReference Include="NReco.Text.AhoCorasickDoubleArrayTrie" Version="1.0.1" />
|
||||
<PackageReference Include="System.IO.Pipelines" Version="4.5.0" />
|
||||
</ItemGroup>
|
||||
|
@ -66,7 +66,7 @@ namespace CompatBot.EventHandlers.LogParsing
|
||||
await FlushAllLinesAsync(result.Buffer, currentSectionLines, state).ConfigureAwait(false);
|
||||
var sectionStart = currentSectionLines.Count == 0 ? buffer : currentSectionLines.First.Value;
|
||||
totalReadBytes += result.Buffer.Slice(0, sectionStart.Start).Length;
|
||||
reader.AdvanceTo(sectionStart.Start, buffer.End);
|
||||
reader.AdvanceTo(sectionStart.Start);
|
||||
if (totalReadBytes >= Config.LogSizeLimit)
|
||||
{
|
||||
state.Error = LogParseState.ErrorCode.SizeLimit;
|
||||
|
Loading…
Reference in New Issue
Block a user