Skip to content

Commit

Permalink
docs: marke merkle_reg() accessors as unstable (in comment) on Regist…
Browse files Browse the repository at this point in the history
…er types
  • Loading branch information
happybeing committed Feb 19, 2024
1 parent 73c1e86 commit cf58272
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions sn_client/src/register.rs
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ impl ClientRegister {
}

/// Access the underlying MerkleReg (e.g. for access to history)
/// NOTE: This API is unstable and may be removed in the future
pub fn merkle_reg(&self) -> &MerkleReg<Entry> {
self.register.merkle_reg()
}
Expand Down
1 change: 1 addition & 0 deletions sn_registers/src/reg_crdt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ impl RegisterCrdt {
}

/// Access the underlying MerkleReg (e.g. for access to history)
/// NOTE: This API is unstable and may be removed in the future
pub(crate) fn merkle_reg(&self) -> &MerkleReg<Entry> {
&self.data
}
Expand Down
2 changes: 2 additions & 0 deletions sn_registers/src/register.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ impl SignedRegister {
}

/// Access the underlying MerkleReg (e.g. for access to history)
/// NOTE: This API is unstable and may be removed in the future
pub fn merkle_reg(&self) -> &MerkleReg<Entry> {
self.base_register.merkle_reg()
}
Expand Down Expand Up @@ -261,6 +262,7 @@ impl Register {
}

/// Access the underlying MerkleReg (e.g. for access to history)
/// NOTE: This API is unstable and may be removed in the future
pub fn merkle_reg(&self) -> &MerkleReg<Entry> {
self.crdt.merkle_reg()
}
Expand Down

0 comments on commit cf58272

Please sign in to comment.