diff options
author | Egon Elbre <egonelbre@gmail.com> | 2017-08-09 01:34:35 +0800 |
---|---|---|
committer | Egon Elbre <egonelbre@gmail.com> | 2017-08-14 23:12:37 +0800 |
commit | 133de3d80659680dc051065cb3baddd92a4e45c5 (patch) | |
tree | cc67ede99634e335f8a07a5b0b084877cb8282d7 /swarm/storage/memstore.go | |
parent | 6ca59d98f88d4b4cc8bdeb2f023ff8c1fa228c6f (diff) | |
download | go-tangerine-133de3d80659680dc051065cb3baddd92a4e45c5.tar go-tangerine-133de3d80659680dc051065cb3baddd92a4e45c5.tar.gz go-tangerine-133de3d80659680dc051065cb3baddd92a4e45c5.tar.bz2 go-tangerine-133de3d80659680dc051065cb3baddd92a4e45c5.tar.lz go-tangerine-133de3d80659680dc051065cb3baddd92a4e45c5.tar.xz go-tangerine-133de3d80659680dc051065cb3baddd92a4e45c5.tar.zst go-tangerine-133de3d80659680dc051065cb3baddd92a4e45c5.zip |
swarm: fix megacheck warnings
Diffstat (limited to 'swarm/storage/memstore.go')
-rw-r--r-- | swarm/storage/memstore.go | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/swarm/storage/memstore.go b/swarm/storage/memstore.go index f96792c6e..155dd0088 100644 --- a/swarm/storage/memstore.go +++ b/swarm/storage/memstore.go @@ -130,10 +130,6 @@ func (s *MemStore) setCapacity(c uint) { s.capacity = c } -func (s *MemStore) getEntryCnt() uint { - return s.entryCnt -} - // entry (not its copy) is going to be in MemStore func (s *MemStore) Put(entry *Chunk) { if s.capacity == 0 { @@ -206,8 +202,6 @@ func (s *MemStore) Put(entry *Chunk) { node.lastDBaccess = s.dbAccessCnt node.updateAccess(s.accessCnt) s.entryCnt++ - - return } func (s *MemStore) Get(hash Key) (chunk *Chunk, err error) { @@ -323,6 +317,4 @@ func (s *MemStore) removeOldest() { } // Close memstore -func (s *MemStore) Close() { - return -} +func (s *MemStore) Close() {} |