about summary refs log tree commit diff
path: root/MatrixAntiDmSpam/Program.cs
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-03-26 11:43:17 +0100
committerRory& <root@rory.gay>2025-03-26 11:43:57 +0100
commit41b14d6621e2579edf55ccf83ca563cb31d09a2d (patch)
tree8bd74f175fef1f4d8edabc324f15aa4f921078e2 /MatrixAntiDmSpam/Program.cs
parentWork on README, add license (diff)
downloadMatrixAntiDmSpam-41b14d6621e2579edf55ccf83ca563cb31d09a2d.tar.xz
Simplify invite store, use multiple threads for evaluating policies to scale beyond unreasonable policy counts
Diffstat (limited to 'MatrixAntiDmSpam/Program.cs')
-rw-r--r--MatrixAntiDmSpam/Program.cs3
1 files changed, 1 insertions, 2 deletions
diff --git a/MatrixAntiDmSpam/Program.cs b/MatrixAntiDmSpam/Program.cs

index e81cd58..e3eb037 100644 --- a/MatrixAntiDmSpam/Program.cs +++ b/MatrixAntiDmSpam/Program.cs
@@ -8,12 +8,11 @@ var builder = Host.CreateApplicationBuilder(args); builder.Services.AddSingleton<AntiDmSpamConfiguration>(); builder.Services.AddRoryLibMatrixServices() .AddMatrixBot() - .WithInviteHandler<InviteHandler>(); + .WithInviteHandler<RoomInviteHandler>(); builder.Services.AddHostedService<PolicyListFetcher>(); builder.Services.AddHostedService<PolicyExecutor>(); -builder.Services.AddSingleton<InviteStore>(); builder.Services.AddSingleton<PolicyStore>(); MatrixHttpClient.LogRequests = false;