Skip to content

Commit

Permalink
Support buckets created with 0 replicas
Browse files Browse the repository at this point in the history
  • Loading branch information
Westwooo committed Sep 3, 2024
1 parent 6f604ab commit 348144d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/cli/buckets_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -369,9 +369,7 @@ impl BucketSettings {
self.durability_level.to_string().into(),
);

if self.num_replicas > 0 {
json.insert("replicas".into(), self.num_replicas.into());
};
json.insert("replicas".into(), self.num_replicas.into());

json
}
Expand Down

0 comments on commit 348144d

Please sign in to comment.