aboutsummaryrefslogtreecommitdiffstats
path: root/swarm/storage
diff options
context:
space:
mode:
authoraron <homotopycolimit@users.noreply.github.com>2017-06-25 22:10:54 +0800
committeraron <homotopycolimit@users.noreply.github.com>2017-06-25 22:10:54 +0800
commitcaa00b7e6d0dcb0429ef83ae993a2656abde9b60 (patch)
tree7e5c2575fc66a4c96674e933f96536acb016614b /swarm/storage
parent78c04c920d07e65864f781fb5c6e5d77435d7aa0 (diff)
downloaddexon-caa00b7e6d0dcb0429ef83ae993a2656abde9b60.tar.gz
dexon-caa00b7e6d0dcb0429ef83ae993a2656abde9b60.tar.zst
dexon-caa00b7e6d0dcb0429ef83ae993a2656abde9b60.zip
swarm/storage: remove panic on invalid chunk
Diffstat (limited to 'swarm/storage')
-rw-r--r--swarm/storage/dbstore.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/swarm/storage/dbstore.go b/swarm/storage/dbstore.go
index 30925a919..31ff5b64e 100644
--- a/swarm/storage/dbstore.go
+++ b/swarm/storage/dbstore.go
@@ -399,7 +399,7 @@ func (s *DbStore) Get(key Key) (chunk *Chunk, err error) {
hash := hasher.Sum(nil)
if !bytes.Equal(hash, key) {
s.delete(index.Idx, getIndexKey(key))
- panic("Invalid Chunk in Database. Please repair with command: 'swarm cleandb'")
+ log.Warn("Invalid Chunk in Database. Please repair with command: 'swarm cleandb'")
}
chunk = &Chunk{