swarm, cmd/swarm: address ineffectual assignments (#18048)
* swarm, cmd/swarm: address ineffectual assignments * swarm/network: remove unused vars from testHandshake * swarm/storage/feed: revert cursor changes
This commit is contained in:
committed by
Viktor Trón
parent
81533deae5
commit
cf3b187bde
@ -244,11 +244,8 @@ func GenerateRandomChunk(dataSize int64) Chunk {
|
||||
}
|
||||
|
||||
func GenerateRandomChunks(dataSize int64, count int) (chunks []Chunk) {
|
||||
if dataSize > ch.DefaultSize {
|
||||
dataSize = ch.DefaultSize
|
||||
}
|
||||
for i := 0; i < count; i++ {
|
||||
ch := GenerateRandomChunk(ch.DefaultSize)
|
||||
ch := GenerateRandomChunk(dataSize)
|
||||
chunks = append(chunks, ch)
|
||||
}
|
||||
return chunks
|
||||
|
Reference in New Issue
Block a user