Add Piece.State

This commit is contained in:
Matt Joiner 2020-02-27 16:41:33 +11:00
parent 436da59801
commit 75e55a3e99
1 changed files with 4 additions and 0 deletions

View File

@ -256,3 +256,7 @@ func (p *Piece) requestStrategyPiece() requestStrategyPiece {
func (p *Piece) dirtyChunks() bitmap.Bitmap {
return p._dirtyChunks
}
func (p *Piece) State() PieceState {
return p.t.PieceState(p.index)
}