Skip to content

Commit

Permalink
Remove unused namespaces and change clustering method in OrleansExten…
Browse files Browse the repository at this point in the history
…sion.

Details:
- Removed unused namespaces related to serialization and message formatting.
- Changed clustering method from UseKubeMembership to UseLocalhostClustering in the OrleansExtension class.
  • Loading branch information
0xF6 committed Jan 3, 2025
1 parent e40f619 commit 198566a
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/Argon.Api/Features/Orleanse/OrleansExtension.cs
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
namespace Argon.Features;

using ActualLab.Serialization;
using Env;
using MessagePack.Formatters;
using MessagePack.Resolvers;
using Orleans.Clustering.Kubernetes;
using Orleans.Configuration;
using Orleans.Hosting;
using Orleans.Providers;
using Orleans.Serialization;
using OrleansStreamingProviders;
using Sentry;
using Shared;

#pragma warning disable ORLEANSEXP001

Expand All @@ -31,7 +27,8 @@ public static WebApplicationBuilder AddOrleans(this WebApplicationBuilder builde
{
options.Invariant = "Npgsql";
options.ConnectionString = builder.Configuration.GetConnectionString("DefaultConnection");
}).AddAdoNetGrainStorage(ProviderConstants.DEFAULT_STORAGE_PROVIDER_NAME, x =>
})
.AddAdoNetGrainStorage(ProviderConstants.DEFAULT_STORAGE_PROVIDER_NAME, x =>
{
x.Invariant = "Npgsql";
x.ConnectionString = builder.Configuration.GetConnectionString("DefaultConnection");
Expand Down Expand Up @@ -60,7 +57,7 @@ public static WebApplicationBuilder AddOrleans(this WebApplicationBuilder builde
}
else
siloBuilder
.UseKubeMembership()
.UseLocalhostClustering()
.AddMemoryStreams("default")
.AddMemoryStreams(IArgonEvent.ProviderId)
.AddBroadcastChannel(IArgonEvent.Broadcast);
Expand Down

0 comments on commit 198566a

Please sign in to comment.