Skip to content

Commit

Permalink
style(cluster): Convert to SPC
Browse files Browse the repository at this point in the history
  • Loading branch information
angelobreuer committed Dec 11, 2023
1 parent 6390d6c commit 5c1d7a0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ public static IServiceCollection AddLavalinkClusterCore(this IServiceCollection
services.TryAddSingleton<ILavalinkApiClientProvider, LavalinkClusterApiClientProvider>();
services.TryAddSingleton<ILavalinkApiClientFactory, LavalinkApiClientFactory>();
services.TryAddSingleton<ILavalinkSessionProvider, LavalinkClusterSessionProvider>();
services.TryAddSingleton<IReconnectStrategy, ExponentialBackoffReconnectStrategy>();
services.TryAddSingleton<IReconnectStrategy, ExponentialBackoffReconnectStrategy>();

services.TryAddSingleton<ILavalinkCluster>(x => x.GetRequiredService<IClusterAudioService>());
services.TryAddSingleton<ILavalinkCluster>(x => x.GetRequiredService<IClusterAudioService>());
services.TryAddSingleton<IAudioService>(x => x.GetRequiredService<IClusterAudioService>());

services.TryAddSingleton<INodeBalancingStrategy>(
Expand Down

0 comments on commit 5c1d7a0

Please sign in to comment.