Skip to content

Commit

Permalink
add kv replication factor (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
DoctorVin authored Oct 19, 2023
1 parent cd7478a commit 6d1c821
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions events/nats_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 6d1c821

Please sign in to comment.