Skip to content

Commit 46f8124

Browse files
author
daniel
committed
revert public method exposures
1 parent 3835cdf commit 46f8124

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

crates/cluster/src/node_operator.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ impl<N> NodeOperator<N> {
162162
}
163163

164164
impl NodeOperator {
165-
pub fn try_into_sc(
165+
pub(super) fn try_into_sc(
166166
self,
167167
key: &EncryptionKey,
168168
) -> Result<smart_contract::NodeOperator, TryIntoSmartContractError> {
@@ -194,7 +194,7 @@ impl NodeOperator {
194194
}
195195

196196
impl<C: Config> NodeOperator<C> {
197-
pub fn try_from_sc(
197+
pub(super) fn try_from_sc(
198198
operator: smart_contract::NodeOperator,
199199
cfg: &C,
200200
) -> Result<NodeOperator<C::Node>, TryFromSmartContractError> {

crates/cluster/src/node_operators.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ pub struct NodeOperators<N = Node> {
2929
}
3030

3131
impl<N> NodeOperators<N> {
32-
pub fn from_slots(
32+
pub(super) fn from_slots(
3333
slots: impl IntoIterator<Item = Option<NodeOperator<N>>>,
3434
) -> Result<Self, CreationError> {
3535
let mut slots: Vec<_> = slots.into_iter().collect();

0 commit comments

Comments
 (0)