-
Notifications
You must be signed in to change notification settings - Fork 414
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
keep knowledge of ongoing merges across merge pipelines #5633
base: main
Are you sure you want to change the base?
Conversation
looks like this made |
|
||
use census::{Inventory, TrackedObject as InventoredObject}; | ||
|
||
pub type TrackedObject<T> = InventoredObject<RecordUnacknoledgedDrop<T>>; |
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.
typo
} | ||
|
||
impl<T> RecordUnacknoledgedDrop<T> { | ||
pub fn acknoledge(&self) { |
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.
typo (acknowledge)
} | ||
|
||
impl<T> RecordUnacknoledgedDrop<T> { | ||
pub fn acknoledge(&self) { |
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.
pub fn acknoledge(&self) { | |
pub fn acknowledge_and_drop(self) { |
pub type TrackedObject<T> = InventoredObject<RecordUnacknoledgedDrop<T>>; | ||
|
||
#[derive(Clone)] | ||
pub struct Tracker<T> { |
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.
This struct needs a comment explaining its point.
let (sender, _receiver) = channel(); | ||
RecordUnacknoledgedDrop { | ||
inner: MaybeUninit::new(value), | ||
acknoledged: true.into(), |
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.
nitpick... (this helps the reader)
acknoledged: true.into(), | |
acknoledged: AtomicBool::from(true), |
/// Return whether it is safe to recreate this tracker. | ||
/// | ||
/// A tracker is considered safe to recreate if this is the only instance left, | ||
/// and it conaints no alive object (it may contain dead objects though). |
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.
/// and it conaints no alive object (it may contain dead objects though). | |
/// and it contains no alive object (it may contain dead objects though). |
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.
can you squash the commits and have a good commit message describing your solution?
Description
fix #5588
How was this PR tested?
added a test reproducing what was failing before, and making sure it passes now