refactor: derive Debug on WAL types
Deriving debug is highly encouraged so that Result::unwrap() and friends can print the state of an object if it is causing a panic (it's impossible to call unwrap() otherwise!)pull/24376/head
parent
0b424888fd
commit
c72c9d2dba
|
@ -389,11 +389,13 @@ impl std::fmt::Debug for Wal {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
struct Segments {
|
||||
closed_segments: BTreeMap<SegmentId, ClosedSegment>,
|
||||
open_segment: OpenSegmentFileWriter,
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
struct WalBuffer {
|
||||
ops: Vec<SequencedWalOp>,
|
||||
notify_flush: tokio::sync::watch::Sender<Option<WriteResult>>,
|
||||
|
|
Loading…
Reference in New Issue