Skip to content

Commit

Permalink
Fix .WithShardedDaemonProcess<T>() throws NullReferenceException (#522
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Arkatufus authored Nov 14, 2024
1 parent e14a399 commit 87d017e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Akka.Cluster.Hosting/ClusterDaemonOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ public sealed class ClusterDaemonOptions
public string? Role { get; set; }
public object? HandoffStopMessage { get; set; }

internal Config? ToHocon()
internal Config ToHocon()
{
return KeepAliveInterval is not null
? $"akka.cluster.sharded-daemon-process.keep-alive-interval = {KeepAliveInterval.ToHocon()}"
: null;
: Config.Empty;
}
}

0 comments on commit 87d017e

Please sign in to comment.