-
Notifications
You must be signed in to change notification settings - Fork 224
implement History::truncate #1082
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
ed37499
411a6f6
5318316
e18c89e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -27,6 +27,11 @@ impl HistorySessionId { | |
| pub(crate) const fn new(i: i64) -> HistorySessionId { | ||
| HistorySessionId(i) | ||
| } | ||
|
|
||
| /// get the raw value from this session id | ||
| pub fn as_raw(&self) -> i64 { | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do I understand this right that first of all it has no consumers and secondly could be achieved by
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. that's correct, I completely missed the |
||
| self.0 | ||
| } | ||
| } | ||
|
|
||
| impl Display for HistorySessionId { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think
truncateis a better name for this?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd vote for it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a way better name.