swarm: Debug API and HasChunks() API endpoint (#18980)

(cherry picked from commit 41597c2856)
This commit is contained in:
holisticode
2019-02-07 09:49:19 -05:00
committed by Rafael Matias
parent 637a75d61a
commit d1ace4f344
12 changed files with 145 additions and 37 deletions

View File

@ -137,6 +137,11 @@ func newRoundRobinStore(stores ...storage.ChunkStore) *roundRobinStore {
}
}
// not used in this context, only to fulfill ChunkStore interface
func (rrs *roundRobinStore) Has(ctx context.Context, addr storage.Address) bool {
panic("RoundRobinStor doesn't support HasChunk")
}
func (rrs *roundRobinStore) Get(ctx context.Context, addr storage.Address) (storage.Chunk, error) {
return nil, errors.New("get not well defined on round robin store")
}