func newPRQ() peerRequestQueue { return &prq{ taskMap: make(map[string]*peerRequestTask), partners: make(map[peer.ID]*activePartner), pQueue: pq.New(partnerCompare), } }
func newActivePartner() *activePartner { return &activePartner{ taskQueue: pq.New(wrapCmp(V1)), activeBlocks: make(map[key.Key]struct{}), } }