FedP2P/request-strategy/peer.go

14 lines
224 B
Go

package request_strategy
import (
"github.com/RoaringBitmap/roaring"
)
type PeerRequestState struct {
Interested bool
// Expecting
Requests roaring.Bitmap
// Cancelled and waiting response
Cancelled roaring.Bitmap
}