mirror of
https://git.notmuchmail.org/git/notmuch
synced 2025-03-14 03:25:15 +01:00
go: add return status to database close method
Add return status to the Database.Close() method that calls notmuch_database_destroy.
This commit is contained in:
parent
ea90d8e043
commit
d81fc4b42d
1 changed files with 2 additions and 2 deletions
|
@ -144,8 +144,8 @@ func OpenDatabase(path string, mode DatabaseMode) (*Database, Status) {
|
|||
|
||||
/* Close the given notmuch database, freeing all associated
|
||||
* resources. See notmuch_database_open. */
|
||||
func (self *Database) Close() {
|
||||
C.notmuch_database_destroy(self.db)
|
||||
func (self *Database) Close() Status {
|
||||
return Status(C.notmuch_database_destroy(self.db))
|
||||
}
|
||||
|
||||
/* Return the database path of the given database.
|
||||
|
|
Loading…
Add table
Reference in a new issue