diff options
| -rw-r--r-- | cmd/xedn/main.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/xedn/main.go b/cmd/xedn/main.go index 339d6ce..377c904 100644 --- a/cmd/xedn/main.go +++ b/cmd/xedn/main.go @@ -147,7 +147,7 @@ func (dc *Cache) Save(dir string, resp *http.Response) error { var ErrNotCached = errors.New("data is not cached") func (dc *Cache) Load(dir string, w io.Writer) error { - return dc.DB.View(func(tx *bbolt.Tx) error { + return dc.DB.Update(func(tx *bbolt.Tx) error { bkt := tx.Bucket([]byte(dir)) if bkt == nil { return ErrNotCached |
