DB: Remove some unnecessary code
This commit is contained in:
parent
fe49220b64
commit
f03ee88b74
|
@ -53,7 +53,7 @@ impl DbBackend for RedisBackend {
|
||||||
|
|
||||||
fn disconnect(&mut self) -> Result<(), String> {
|
fn disconnect(&mut self) -> Result<(), String> {
|
||||||
log(LogType::Info, LogArea::Db, "Disconnecting from database");
|
log(LogType::Info, LogArea::Db, "Disconnecting from database");
|
||||||
drop(self.conn.take());
|
self.conn.take();
|
||||||
return Ok(())
|
return Ok(())
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -57,8 +57,7 @@ impl DbBackend for SqliteBackend {
|
||||||
|
|
||||||
fn disconnect(&mut self) -> Result<(), String> {
|
fn disconnect(&mut self) -> Result<(), String> {
|
||||||
log(LogType::Info, LogArea::Db, "Disconnecting from database");
|
log(LogType::Info, LogArea::Db, "Disconnecting from database");
|
||||||
drop(self.conn.take());
|
self.conn.take();
|
||||||
self.conn = None;
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user