Skip to content
Snippets Groups Projects
Unverified Commit 6fa01aa9 authored by Timo Kösters's avatar Timo Kösters
Browse files

fix: remove dbg

parent a336027b
No related branches found
No related tags found
No related merge requests found
...@@ -136,7 +136,7 @@ pub struct SqliteTable { ...@@ -136,7 +136,7 @@ pub struct SqliteTable {
impl SqliteTable { impl SqliteTable {
#[tracing::instrument(skip(self, guard, key))] #[tracing::instrument(skip(self, guard, key))]
fn get_with_guard(&self, guard: &Connection, key: &[u8]) -> Result<Option<Vec<u8>>> { fn get_with_guard(&self, guard: &Connection, key: &[u8]) -> Result<Option<Vec<u8>>> {
dbg!(&self.name); //dbg!(&self.name);
Ok(guard Ok(guard
.prepare(format!("SELECT value FROM {} WHERE key = ?", self.name).as_str())? .prepare(format!("SELECT value FROM {} WHERE key = ?", self.name).as_str())?
.query_row([key], |row| row.get(0)) .query_row([key], |row| row.get(0))
...@@ -145,7 +145,7 @@ fn get_with_guard(&self, guard: &Connection, key: &[u8]) -> Result<Option<Vec<u8 ...@@ -145,7 +145,7 @@ fn get_with_guard(&self, guard: &Connection, key: &[u8]) -> Result<Option<Vec<u8
#[tracing::instrument(skip(self, guard, key, value))] #[tracing::instrument(skip(self, guard, key, value))]
fn insert_with_guard(&self, guard: &Connection, key: &[u8], value: &[u8]) -> Result<()> { fn insert_with_guard(&self, guard: &Connection, key: &[u8], value: &[u8]) -> Result<()> {
dbg!(&self.name); //dbg!(&self.name);
guard.execute( guard.execute(
format!( format!(
"INSERT OR REPLACE INTO {} (key, value) VALUES (?, ?)", "INSERT OR REPLACE INTO {} (key, value) VALUES (?, ?)",
...@@ -179,7 +179,7 @@ pub fn iter_with_guard<'a>( ...@@ -179,7 +179,7 @@ pub fn iter_with_guard<'a>(
.query_map([], |row| Ok((row.get_unwrap(0), row.get_unwrap(1)))) .query_map([], |row| Ok((row.get_unwrap(0), row.get_unwrap(1))))
.unwrap() .unwrap()
.map(move |r| { .map(move |r| {
dbg!(&name); //dbg!(&name);
r.unwrap() r.unwrap()
}), }),
); );
...@@ -286,7 +286,7 @@ fn iter_from<'a>( ...@@ -286,7 +286,7 @@ fn iter_from<'a>(
.query_map([from], |row| Ok((row.get_unwrap(0), row.get_unwrap(1)))) .query_map([from], |row| Ok((row.get_unwrap(0), row.get_unwrap(1))))
.unwrap() .unwrap()
.map(move |r| { .map(move |r| {
dbg!(&name); //dbg!(&name);
r.unwrap() r.unwrap()
}), }),
); );
...@@ -311,7 +311,7 @@ fn iter_from<'a>( ...@@ -311,7 +311,7 @@ fn iter_from<'a>(
.query_map([from], |row| Ok((row.get_unwrap(0), row.get_unwrap(1)))) .query_map([from], |row| Ok((row.get_unwrap(0), row.get_unwrap(1))))
.unwrap() .unwrap()
.map(move |r| { .map(move |r| {
dbg!(&name); //dbg!(&name);
r.unwrap() r.unwrap()
}), }),
); );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment