Skip to content

Commit

Permalink
method to get immutable reference to sled from driver
Browse files Browse the repository at this point in the history
  • Loading branch information
DavJCosby committed Apr 21, 2024
1 parent a2e40dd commit b62ad96
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/driver/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ impl Driver {
}
}

pub fn sled(&self) -> Option<&Sled> {
self.sled.as_ref()
}

pub fn elapsed(&self) -> Duration {
self.startup.elapsed()
}
Expand Down

0 comments on commit b62ad96

Please sign in to comment.