mirror of
https://github.com/RPCS3/discord-bot.git
synced 2026-01-31 01:25:22 +01:00
fix some stuff after changes
This commit is contained in:
@@ -124,8 +124,8 @@ namespace CompatBot
|
||||
inMemorySettings[nameof(Token)] = args[1];
|
||||
|
||||
config = new ConfigurationBuilder()
|
||||
.AddUserSecrets(Assembly.GetEntryAssembly()) // lower priority
|
||||
.AddEnvironmentVariables()
|
||||
.AddEnvironmentVariables() // lower priority
|
||||
.AddUserSecrets(Assembly.GetEntryAssembly())
|
||||
.AddInMemoryCollection(inMemorySettings) // higher priority
|
||||
.Build();
|
||||
Log = GetLog();
|
||||
|
||||
@@ -84,7 +84,7 @@ namespace CompatBot.ThumbScrapper
|
||||
throw new InvalidOperationException("No zip entries that match the .xml criteria");
|
||||
|
||||
using (var zipStream = logEntry.Open())
|
||||
using (var xmlReader = XmlReader.Create(zipStream))
|
||||
using (var xmlReader = XmlReader.Create(zipStream, new XmlReaderSettings { Async = true }))
|
||||
{
|
||||
xmlReader.ReadToFollowing("PS3TDB");
|
||||
var version = xmlReader.GetAttribute("version");
|
||||
|
||||
Reference in New Issue
Block a user