mirror of
https://github.com/loro-dev/loro.git
synced 2025-01-23 05:24:51 +00:00
add pub LoroDoc::peer_id (#267)
Co-authored-by: Gentle <ramon.klass@gmail.com>
This commit is contained in:
parent
269e944ed8
commit
68117070dd
1 changed files with 5 additions and 0 deletions
|
@ -239,6 +239,11 @@ impl LoroDoc {
|
||||||
self.doc.state_frontiers()
|
self.doc.state_frontiers()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Get the PeerID
|
||||||
|
pub fn peer_id(&self) -> PeerID {
|
||||||
|
self.doc.peer_id()
|
||||||
|
}
|
||||||
|
|
||||||
/// Change the PeerID
|
/// Change the PeerID
|
||||||
///
|
///
|
||||||
/// NOTE: You need ot make sure there is no chance two peer have the same PeerID.
|
/// NOTE: You need ot make sure there is no chance two peer have the same PeerID.
|
||||||
|
|
Loading…
Reference in a new issue