From 180f6fef5398116d53b246396aa6a370b0260cec Mon Sep 17 00:00:00 2001 From: qshuai Date: Fri, 12 Jul 2019 23:06:38 +0800 Subject: [PATCH] headers: Removing unnecssary member in HeaderDB --- headers.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/headers.go b/headers.go index 66c3578..5ab9126 100644 --- a/headers.go +++ b/headers.go @@ -65,7 +65,6 @@ type StoredHeader struct { type HeaderDB struct { lock *sync.Mutex db *bolt.DB - filePath string bestCache *StoredHeader cache *HeaderCache } @@ -87,7 +86,6 @@ func NewHeaderDB(filePath string) (*HeaderDB, error) { } h.db = db h.lock = new(sync.Mutex) - h.filePath = filePath h.cache = &HeaderCache{ordered_map.NewOrderedMap(), sync.RWMutex{}, CACHE_SIZE} db.Update(func(btx *bolt.Tx) error {