X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=contrib%2Fgo%2Fsrc%2Fnotmuch%2Fnotmuch.go;h=89093b2da34dab037e4ccba6f4f7f767fe8564d3;hb=b10ce6bc23002d48916b1b2f375480e7540e3164;hp=a8611ebbe53cc833619b7a51fdbfb6c567ba9532;hpb=263a690ac47ced487a7305bd5056723662d1c28c;p=notmuch diff --git a/contrib/go/src/notmuch/notmuch.go b/contrib/go/src/notmuch/notmuch.go index a8611ebb..89093b2d 100644 --- a/contrib/go/src/notmuch/notmuch.go +++ b/contrib/go/src/notmuch/notmuch.go @@ -86,7 +86,7 @@ type Filenames struct { type DatabaseMode C.notmuch_database_mode_t const ( - DATABASE_MODE_READ_ONLY DatabaseMode = 0 + DATABASE_MODE_READ_ONLY DatabaseMode = iota DATABASE_MODE_READ_WRITE ) @@ -170,7 +170,7 @@ func (self *Database) GetVersion() uint { /* Does this database need to be upgraded before writing to it? * * If this function returns TRUE then no functions that modify the - * database (notmuch_database_add_message, notmuch_message_add_tag, + * database (notmuch_database_index_file, notmuch_message_add_tag, * notmuch_directory_set_mtime, etc.) will work unless the function * notmuch_database_upgrade is called successfully first. */ func (self *Database) NeedsUpgrade() bool {