From 6d1c8212f111898889df40bf5fb23690142a6c9d Mon Sep 17 00:00:00 2001 From: Doctor Vince Date: Thu, 19 Oct 2023 13:48:21 -0400 Subject: [PATCH] add kv replication factor (#173) --- events/nats_config.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/events/nats_config.go b/events/nats_config.go index 4a19d06..e769ccb 100644 --- a/events/nats_config.go +++ b/events/nats_config.go @@ -66,6 +66,9 @@ type NatsOptions struct { // Setting Stream parameters will cause a NATS stream to be added. Stream *NatsStreamOptions `mapstructure:"stream"` + + // KVReplicationFactor sets the number of copies in a NATS clustered environment + KVReplicationFactor int `mapstructure:"kv_replication"` } // NatsConsumerOptions is the parameters for the NATS consumer configuration.