Skip to content

Commit

Permalink
fix(iroh): add timestamp method to Entry RPC struct (#1949)
Browse files Browse the repository at this point in the history
## Description

<!-- A summary of what this pull request achieves and a rough list of
changes. -->

## Notes & open questions

<!-- Any notes, remarks or open questions you have to make about the PR.
-->

## Change checklist

- [ ] Self-review.
- [ ] Documentation updates if relevant.
- [ ] Tests if relevant.
  • Loading branch information
b5 committed Jan 15, 2024
1 parent eab55bf commit 0084b5f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions iroh/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -871,6 +871,11 @@ impl Entry {
self.0.key()
}

/// Get the timestamp of this entry.
pub fn timestamp(&self) -> u64 {
self.0.timestamp()
}

/// Read the content of an [`Entry`] as a streaming [`BlobReader`].
///
/// You can pass either a [`Doc`] or the [`Iroh`] client by reference as `client`.
Expand Down

0 comments on commit 0084b5f

Please sign in to comment.