// Actually go ahead and modify the pending requests.
updateRequests()
- // _cancel initiates cancellation of a request and returns acked if it expects the cancel to be
- // handled by a follow-up event.
- _cancel(RequestIndex) (acked bool)
+ // handleCancel initiates cancellation of a request and returns acked if it expects the cancel
+ // to be handled by a follow-up event.
+ handleCancel(RequestIndex)
+ acksCancels() bool
// The final piece to actually commit to a request. Typically, this sends or begins handling the
// request.
_request(Request) bool
if !me.deleteRequest(r) {
panic("request not existing should have been guarded")
}
- if me._cancel(r) {
+ me.handleCancel(r)
+ if me.acksCancels() {
// Record that we expect to get a cancel ack.
if !me.requestState.Cancelled.CheckedAdd(r) {
panic("request already cancelled")
lastUnhandledErr time.Time
}
+func (me *webseedPeer) acksCancels() bool {
+ return false
+}
+
func (me *webseedPeer) updateRequests() {
//TODO implement me
panic("implement me")