Skip to content

Commit

Permalink
Update Configuration.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ro0NL authored and nekufa committed Mar 22, 2024
1 parent a5f2ff5 commit 1c858fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Stream/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function fromArray(array $array): self
return $this
->setDiscardPolicy($array['discard'])
->setMaxConsumers($array['max_consumers'])
->setReplicas($array['replicas'])
->setReplicas($array['replicas'] ?? $array['num_replicas'])
->setRetentionPolicy($array['retention'])
->setStorageBackend($array['storage'])
->setSubjects($array['subjects']);
Expand Down

0 comments on commit 1c858fc

Please sign in to comment.