Implement Project::definition when the buffer is remote

This commit is contained in:
Antonio Scandurra 2022-01-24 12:27:13 +01:00
parent 528a4dd9b4
commit 245490f934
6 changed files with 392 additions and 53 deletions

View file

@ -155,7 +155,7 @@ pub fn serialize_diagnostics<'a>(
.collect()
}
fn serialize_anchor(anchor: &Anchor) -> proto::Anchor {
pub fn serialize_anchor(anchor: &Anchor) -> proto::Anchor {
proto::Anchor {
replica_id: anchor.timestamp.replica_id as u32,
local_timestamp: anchor.timestamp.value,
@ -352,7 +352,7 @@ pub fn deserialize_diagnostics(
.collect()
}
fn deserialize_anchor(anchor: proto::Anchor) -> Option<Anchor> {
pub fn deserialize_anchor(anchor: proto::Anchor) -> Option<Anchor> {
Some(Anchor {
timestamp: clock::Local {
replica_id: anchor.replica_id as ReplicaId,