Add Piece.State
This commit is contained in:
parent
436da59801
commit
75e55a3e99
4
piece.go
4
piece.go
|
@ -256,3 +256,7 @@ func (p *Piece) requestStrategyPiece() requestStrategyPiece {
|
||||||
func (p *Piece) dirtyChunks() bitmap.Bitmap {
|
func (p *Piece) dirtyChunks() bitmap.Bitmap {
|
||||||
return p._dirtyChunks
|
return p._dirtyChunks
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (p *Piece) State() PieceState {
|
||||||
|
return p.t.PieceState(p.index)
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue