Added many more braces for multiline if's, Improved .crypto command quite a bit and applied locale-specific format

This commit is contained in:
Kwoth
2022-02-04 06:00:17 +01:00
parent f77f2f433f
commit eda38e64d1
129 changed files with 635 additions and 233 deletions

View File

@@ -53,6 +53,7 @@ public class EventPubSub : IPubSub
// get subscriptions which have the same action hash code
// note: having this as a list allows for multiple subscriptions of
// the same insance's/static method
{
if (actions.TryGetValue(action, out var sameActions))
{
// remove last subscription
@@ -71,6 +72,7 @@ public class EventPubSub : IPubSub
_actions.Remove(key.Key);
}
}
}
return Task.CompletedTask;
}

View File

@@ -36,8 +36,10 @@ public sealed class RedisPubSub : IPubSub
if (dataObj is not null)
await action(dataObj);
else
{
Log.Warning("Publishing event {EventName} with a null value. This is not allowed",
eventName);
}
}
catch (Exception ex)
{