aboutsummaryrefslogtreecommitdiff
path: root/internal/feed/cache
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.eu>2020-08-22 21:59:56 +0200
committerRené 'Necoro' Neumann <necoro@necoro.eu>2020-08-22 22:16:51 +0200
commit6cf3144fb8de58ccf06080433b7ac279299db998 (patch)
treecf12060209abdb122b1e1fbfd0dbcf98340872c1 /internal/feed/cache
parent03f84710ecfcb221b4517309231b6ee3510052ee (diff)
downloadfeed2imap-go-6cf3144fb8de58ccf06080433b7ac279299db998.tar.gz
feed2imap-go-6cf3144fb8de58ccf06080433b7ac279299db998.tar.bz2
feed2imap-go-6cf3144fb8de58ccf06080433b7ac279299db998.zip
Fix writing the cache
Diffstat (limited to '')
-rw-r--r--internal/feed/cache.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/feed/cache.go b/internal/feed/cache.go
index d233395..fa22139 100644
--- a/internal/feed/cache.go
+++ b/internal/feed/cache.go
@@ -97,7 +97,7 @@ func storeCache(cache Cache, fileName string) error {
}
encoder := gob.NewEncoder(writer)
- if err = encoder.Encode(cache); err != nil {
+ if err = encoder.Encode(cache.CacheImpl); err != nil {
return fmt.Errorf("encoding cache: %w", err)
}