# Functions
DefaultPeerComparator implements the default peer prioritization logic.
New creates a new PeerTracker.
TaskPriorityPeerComparator prioritizes peers based on their highest priority task.
WithQueueTaskComparator sets a custom QueueTask comparison function for the peer tracker's task queue.
# Structs
DefaultTaskMerger is the TaskMerger used by default.
PeerTracker tracks task blocks for a single peer, as well as active tasks for that peer.
PeerTrackerStats captures number of active and pending tasks for this peer.
PeerTrackerTopics captures the current state of topics in this peers queue.
# Interfaces
TaskMerger is an interface that is used to merge new tasks into the active and pending queues.
# Type aliases
Option is a function that configures the peer tracker.
PeerComparator is used for peer prioritization.