code: func (d *deliverServiceImpl) StopDeliverForChannel(chainID string) error {
  	d.lock.Lock()
  	defer d.lock.Unlock()
  	if d.stopping {
  		errMsg := fmt.Sprintf("Delivery service is stopping, cannot stop delivery for channel %s", chainID)
  		logger.Errorf(errMsg)
  		return errors.New(errMsg)
  	}
  	if client, exist := d.blockProviders[chainID]; exist {
  		client.Stop()
  		delete(d.blockProviders, chainID)
  		logger.Debug("This peer will stop pass blocks from orderer service to other peers")
  	} else {
  		errMsg := fmt.Sprintf("Delivery service - no block provider for %s found, can't stop delivery", chainID)
  		logger.Errorf(errMsg)
  		return errors.New(errMsg)
  	}
  	return nil
  }
docs: // StopDeliverForChannel stops blocks delivery for channel by stopping channel block provider