mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-28 02:20:42 +00:00
chore: derive default
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user