Diffstat (limited to 'internal/router/client-cache.go')
| -rw-r--r-- | internal/router/client-cache.go | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/internal/router/client-cache.go b/internal/router/client-cache.go index 26557d0..d607cdd 100644 --- a/internal/router/client-cache.go +++ b/internal/router/client-cache.go @@ -110,11 +110,7 @@ func (c *ClientCache) Close() error { return fmt.Errorf("fail to save blog_views: %s", err) } - if err = tx.Commit(); err != nil { - tx.Rollback() - return fmt.Errorf("fail to commit all the changes related to cache: %s", err) - } - return nil + return tx.Commit() } func (c *ClientCache) GetHash(id string) string { |