github.com/anacrolix/torrent@v1.61.0/protocol.go (about)

     1  package torrent
     2  
     3  import (
     4  	pp "github.com/anacrolix/torrent/peer_protocol"
     5  )
     6  
     7  func makeCancelMessage(r Request) pp.Message {
     8  	return pp.MakeCancelMessage(r.Index, r.Begin, r.Length)
     9  }