chore: derive default

This commit is contained in:
Joonas Koivunen
2024-07-25 16:31:28 +00:00
parent 29ef8f15ce
commit 48a2a20de3

View File

@@ -121,18 +121,11 @@ impl Default for Options {
///
/// Currently this is tracked at tenant level, but it could be moved to be on the roots
/// of each timeline tree.
#[derive(Default)]
pub(crate) struct SharedState {
inner: std::sync::Mutex<Option<(TimelineId, completion::Barrier)>>,
}
impl Default for SharedState {
fn default() -> Self {
SharedState {
inner: Default::default(),
}
}
}
impl SharedState {
/// Notify an uninitialized shared state that an attempt to detach timeline ancestor continues
/// from previous instance.