using ZB.MOM.WW.Secrets.Abstractions;

namespace ZB.MOM.WW.Secrets.DependencyInjection;

/// <summary>
/// The single-node default <see cref="ISecretReplicator"/>: publishing a row is a no-op because
/// there are no peers to broadcast to. The deferred <c>ZB.MOM.WW.Secrets.Akka</c> package replaces
/// this registration with a real cluster replicator for clustered deployments.
/// </summary>
public sealed class NoOpSecretReplicator : ISecretReplicator
{
    /// <inheritdoc />
    public Task PublishAsync(StoredSecret row, CancellationToken ct) => Task.CompletedTask;
}
