mirror of
https://github.com/mjl-/mox.git
synced 2025-07-14 08:54:35 +03:00
consistently use log.Check for logging errors that "should not happen", don't influence application flow
sooner or later, someone will notice one of these messages, which will lead us to a bug.
This commit is contained in:
@ -87,7 +87,8 @@ func Close() {
|
||||
mutex.Lock()
|
||||
defer mutex.Unlock()
|
||||
if tlsrptDB != nil {
|
||||
tlsrptDB.Close()
|
||||
err := tlsrptDB.Close()
|
||||
xlog.Check(err, "closing database")
|
||||
tlsrptDB = nil
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user