code: func (c *Connection) releaseAPIChannel(ch *Channel) {
  	log.WithFields(logger.Fields{
  		"channel": ch.id,
  	}).Debug("API channel released")
  
  	// delete the channel from channels map
  	c.channelsLock.Lock()
  	delete(c.channels, ch.id)
  	c.channelsLock.Unlock()
  }
docs: // releaseAPIChannel releases API channel that needs to be closed.