swarm/chunk: move chunk related declarations to chunk package (#19170)
This commit is contained in:
committed by
Anton Evangelatov
parent
b7e0dec6bd
commit
f0233948d2
@ -16,9 +16,7 @@
|
||||
|
||||
package storage
|
||||
|
||||
import (
|
||||
"errors"
|
||||
)
|
||||
import "github.com/ethereum/go-ethereum/swarm/chunk"
|
||||
|
||||
const (
|
||||
ErrInit = iota
|
||||
@ -31,7 +29,8 @@ const (
|
||||
ErrNotSynced
|
||||
)
|
||||
|
||||
// Errors are the same as the ones in chunk package for backward compatibility.
|
||||
var (
|
||||
ErrChunkNotFound = errors.New("chunk not found")
|
||||
ErrChunkInvalid = errors.New("invalid chunk")
|
||||
ErrChunkNotFound = chunk.ErrChunkNotFound
|
||||
ErrChunkInvalid = chunk.ErrChunkNotFound
|
||||
)
|
||||
|
Reference in New Issue
Block a user