Skip to content

Commit caa00b7

Browse files
author
aron
committed
swarm/storage: remove panic on invalid chunk
1 parent 78c04c9 commit caa00b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swarm/storage/dbstore.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ func (s *DbStore) Get(key Key) (chunk *Chunk, err error) {
399399
hash := hasher.Sum(nil)
400400
if !bytes.Equal(hash, key) {
401401
s.delete(index.Idx, getIndexKey(key))
402-
panic("Invalid Chunk in Database. Please repair with command: 'swarm cleandb'")
402+
log.Warn("Invalid Chunk in Database. Please repair with command: 'swarm cleandb'")
403403
}
404404

405405
chunk = &Chunk{

0 commit comments

Comments
 (0)