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

This commit is contained in:
holisticode
2019-02-07 09:49:19 -05:00
committed by Anton Evangelatov
parent 33d0a0efa6
commit 41597c2856
12 changed files with 145 additions and 37 deletions

View File

@ -214,6 +214,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")
}