aboutsummaryrefslogtreecommitdiffstats
path: root/cache/bug_cache.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2019-02-18 14:11:37 +0100
committerMichael Muré <batolettre@gmail.com>2019-03-01 22:40:26 +0100
commit947ea63522610bd16c32cf70812c129eda9bbb02 (patch)
tree76542e4a5ab488dc45477d33c3f4e94b0eb36975 /cache/bug_cache.go
parent976af3a4e8382d03e9f2ccb57e2ed3b783294138 (diff)
downloadgit-bug-947ea63522610bd16c32cf70812c129eda9bbb02.tar.gz
identity: wip caching
Diffstat (limited to 'cache/bug_cache.go')
-rw-r--r--cache/bug_cache.go12
1 files changed, 10 insertions, 2 deletions
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()
}