status-go/vendor/github.com/anacrolix/torrent/request-strategy/peer.go

15 lines
327 B
Go
Raw Permalink Normal View History

2022-03-10 09:44:48 +00:00
package request_strategy
import (
"github.com/RoaringBitmap/roaring"
)
type PeerRequestState struct {
Interested bool
// Expecting. TODO: This should be ordered so webseed requesters initiate in the same order they
// were assigned.
Requests roaring.Bitmap
// Cancelled and waiting response
Cancelled roaring.Bitmap
}