code: func (h *Handler) notifyRegistry(err error) {
  	if err == nil {
  		err = h.sendReady()
  	}
  
  	if err != nil {
  		h.Registry.Failed(h.chaincodeID.Name, err)
  		chaincodeLogger.Errorf("failed to start %s", h.chaincodeID)
  		return
  	}
  
  	h.Registry.Ready(h.chaincodeID.Name)
  }
docs: // notifyRegistry will send ready on registration success and
  // update the launch state of the chaincode in the handler registry.