code: func (c *Client) removeAllRequests() {
  	c.requestMap = make(map[uint64]*list.Element)
  	c.requestList.Init()
  }
docs: // removeAllRequests removes all the jsonRequests which contain the response
  // channels for outstanding requests.
  //
  // This function MUST be called with the request lock held.