From 947ea63522610bd16c32cf70812c129eda9bbb02 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Mon, 18 Feb 2019 14:11:37 +0100 Subject: identity: wip caching --- cache/bug_cache.go | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'cache/bug_cache.go') diff --git a/cache/bug_cache.go b/cache/bug_cache.go index ce46837a..53a96275 100644 --- a/cache/bug_cache.go +++ b/cache/bug_cache.go @@ -228,9 +228,17 @@ func (c *BugCache) EditCommentRaw(author *IdentityCache, unixTime int64, target } func (c *BugCache) Commit() error { - return c.bug.Commit(c.repoCache.repo) + err := c.bug.Commit(c.repoCache.repo) + if err != nil { + return err + } + return c.notifyUpdated() } func (c *BugCache) CommitAsNeeded() error { - return c.bug.CommitAsNeeded(c.repoCache.repo) + err := c.bug.CommitAsNeeded(c.repoCache.repo) + if err != nil { + return err + } + return c.notifyUpdated() } -- cgit