Skip to content

Commit

Permalink
Make ReplicatedClients::new public (#325)
Browse files Browse the repository at this point in the history
  • Loading branch information
UkoeHB authored Sep 9, 2024
1 parent 6814f55 commit e1fe579
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Changed

- Made `ReplicatedClients::new` public for use in testing contexts.

## [0.28.1] - 2024-09-04

### Fixed
Expand Down
5 changes: 4 additions & 1 deletion src/core/replicated_clients.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ pub struct ReplicatedClients {
}

impl ReplicatedClients {
pub(crate) fn new(policy: VisibilityPolicy, replicate_after_connect: bool) -> Self {
/// Makes a new replicated clients struct.
///
/// Generally you should not need this except in testing contexts.
pub fn new(policy: VisibilityPolicy, replicate_after_connect: bool) -> Self {
Self {
clients: Default::default(),
policy,
Expand Down

0 comments on commit e1fe579

Please sign in to comment.