1
0
Fork 0
mirror of https://gitlab.com/famedly/conduit.git synced 2024-11-05 03:48:52 +01:00

fix: remove dbg

This commit is contained in:
Timo Kösters 2022-01-13 21:46:20 +01:00
parent a336027b0e
commit 6fa01aa982
No known key found for this signature in database
GPG key ID: 356E705610F626D5

View file

@ -136,7 +136,7 @@ type TupleOfBytes = (Vec<u8>, Vec<u8>);
impl SqliteTable {
#[tracing::instrument(skip(self, guard, key))]
fn get_with_guard(&self, guard: &Connection, key: &[u8]) -> Result<Option<Vec<u8>>> {
dbg!(&self.name);
//dbg!(&self.name);
Ok(guard
.prepare(format!("SELECT value FROM {} WHERE key = ?", self.name).as_str())?
.query_row([key], |row| row.get(0))
@ -145,7 +145,7 @@ impl SqliteTable {
#[tracing::instrument(skip(self, guard, key, value))]
fn insert_with_guard(&self, guard: &Connection, key: &[u8], value: &[u8]) -> Result<()> {
dbg!(&self.name);
//dbg!(&self.name);
guard.execute(
format!(
"INSERT OR REPLACE INTO {} (key, value) VALUES (?, ?)",
@ -179,7 +179,7 @@ impl SqliteTable {
.query_map([], |row| Ok((row.get_unwrap(0), row.get_unwrap(1))))
.unwrap()
.map(move |r| {
dbg!(&name);
//dbg!(&name);
r.unwrap()
}),
);
@ -286,7 +286,7 @@ impl Tree for SqliteTable {
.query_map([from], |row| Ok((row.get_unwrap(0), row.get_unwrap(1))))
.unwrap()
.map(move |r| {
dbg!(&name);
//dbg!(&name);
r.unwrap()
}),
);
@ -311,7 +311,7 @@ impl Tree for SqliteTable {
.query_map([from], |row| Ok((row.get_unwrap(0), row.get_unwrap(1))))
.unwrap()
.map(move |r| {
dbg!(&name);
//dbg!(&name);
r.unwrap()
}),
);