diff options
author | Tim Culverhouse <tim@timculverhouse.com> | 2023-08-29 13:15:46 -0500 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-08-30 22:10:36 +0200 |
commit | 781820627f1cb87df898d1a7b5f3b56c6fa20b77 (patch) | |
tree | 1e3a3c0c7cb8dae048b8bbe2079a15a85455d553 /worker/notmuch/eventhandlers.go | |
parent | 3a55b8e6fd51c3dda1ea71c6806f2ee2d71c1065 (diff) | |
download | aerc-781820627f1cb87df898d1a7b5f3b56c6fa20b77.tar.gz |
notmuch: replace notmuch library with internal bindings
Replace the notmuch library used with our internal bindings.
Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'worker/notmuch/eventhandlers.go')
-rw-r--r-- | worker/notmuch/eventhandlers.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/worker/notmuch/eventhandlers.go b/worker/notmuch/eventhandlers.go index a6ab7668..d4d75628 100644 --- a/worker/notmuch/eventhandlers.go +++ b/worker/notmuch/eventhandlers.go @@ -21,6 +21,11 @@ func (w *worker) handleNotmuchEvent(et eventType) error { } func (w *worker) handleUpdateDirCounts() error { + err := w.db.Connect() + if err != nil { + return err + } + defer w.db.Close() if w.store != nil { folders, err := w.store.FolderMap() if err != nil { |