summaryrefslogtreecommitdiff
path: root/src/dbctx.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/dbctx.rs')
-rw-r--r--src/dbctx.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/dbctx.rs b/src/dbctx.rs
index 0b1b7ad..049a490 100644
--- a/src/dbctx.rs
+++ b/src/dbctx.rs
@@ -615,8 +615,7 @@ impl DbCtx {
)
.expect("can insert");
- self.conn.lock()
- .unwrap()
+ conn
.query_row(
"select id from hosts where \
( \