]> git.lizzy.rs Git - go-anidb.git/commitdiff
anidb: fix ed2k caching
authorDiogo Franco (Kovensky) <diogomfranco@gmail.com>
Mon, 15 Jul 2013 03:22:20 +0000 (00:22 -0300)
committerDiogo Franco (Kovensky) <diogomfranco@gmail.com>
Mon, 15 Jul 2013 03:22:20 +0000 (00:22 -0300)
Don't embed time.Time in the cache struct -- time.Time has its own
GobEncode and GobDecode methods, and we don't want them to be used.

filecache.go

index 69c8741d9d1e6a0078a5c3f968d701772edc4919..fbf7066966aa6db368c27d99a06250b76e42d4ac 100644 (file)
@@ -48,7 +48,7 @@ func (fid FID) File() *File {
 
 type ed2kCache struct {
        FID
-       time.Time
+       Time time.Time
 }
 
 func (c *ed2kCache) Touch() {