upgrade some server deps

I avoided rtcp 0.2.2->0.2.3 because of an accidental semver break.
This commit is contained in:
Scott Lamb
2021-07-09 15:01:15 -07:00
parent 75e3b85850
commit 1df55efc43
7 changed files with 249 additions and 167 deletions

View File

@@ -28,7 +28,7 @@ enum OpenMode {
/// The returned `dir::Fd` holds the lock and should be kept open as long as the `Connection` is.
fn open_dir(db_dir: &Path, mode: OpenMode) -> Result<dir::Fd, Error> {
let dir = dir::Fd::open(db_dir, mode == OpenMode::Create).map_err(|e| {
e.context(if e == nix::Error::Sys(nix::errno::Errno::ENOENT) {
e.context(if e == nix::Error::ENOENT {
format!(
"db dir {} not found; try running moonfire-nvr init",
db_dir.display()