Skip to content

Commit

Permalink
Add placement to object store
Browse files Browse the repository at this point in the history
Signed-off-by: Tomasz Pietrek <tomasz@nats.io>
  • Loading branch information
Jarema committed Apr 19, 2024
1 parent a2149cd commit f06cacf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions async-nats/src/jetstream/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1054,6 +1054,7 @@ impl Context {
} else {
None
},
placement: config.placement,
..Default::default()
})
.await
Expand Down
2 changes: 2 additions & 0 deletions async-nats/src/jetstream/object_store/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ pub struct Config {
pub num_replicas: usize,
/// Sets compression of the underlying stream.
pub compression: bool,
// Cluster and tag placement.
pub placement: Option<stream::Placement>,
}

/// A blob store capable of storing large objects efficiently in streams.
Expand Down

0 comments on commit f06cacf

Please sign in to comment.