8 type piecePriority byte
11 piecePriorityNone piecePriority = iota
13 piecePriorityReadahead
20 PendingChunkSpecs map[chunkSpec]struct{}
25 Priority piecePriority
28 func (p *piece) shuffledPendingChunkSpecs() (css []chunkSpec) {
29 if len(p.PendingChunkSpecs) == 0 {
32 css = make([]chunkSpec, 0, len(p.PendingChunkSpecs))
33 for cs := range p.PendingChunkSpecs {
41 css[i], css[j] = css[j], css[i]