Skip to content

Commit

Permalink
make ReplicatedClients::new public
Browse files Browse the repository at this point in the history
  • Loading branch information
UkoeHB committed Sep 9, 2024
1 parent 6814f55 commit 6a9df6e
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 6a9df6e

Please sign in to comment.