code: func (c *Comm) updateStubInMapping(channel string, mapping MemberMapping, node RemoteNode) {
  	stub := mapping.ByID(node.ID)
  	if stub == nil {
  		c.Logger.Info("Allocating a new stub for node", node.ID, "with endpoint of", node.Endpoint, "for channel", channel)
  		stub = &Stub{}
  	}
  
  	// Check if the TLS server certificate of the node is replaced
  	// and if so - then deactivate the stub, to trigger
  	// a re-creation of its gRPC connection
  	if !bytes.Equal(stub.ServerTLSCert, node.ServerTLSCert) {
  		c.Logger.Info("Deactivating node", node.ID, "in channel", channel,
  			"with endpoint of", node.Endpoint, "due to TLS certificate change")
  		stub.Deactivate()
  	}
  
  	// Overwrite the stub Node data with the new data
  	stub.RemoteNode = node
  
  	// Put the stub into the mapping
  	mapping.Put(stub)
  
  	// Check if the stub needs activation.
  	if stub.Active() {
  		return
  	}
  
  	// Activate the stub
  	stub.Activate(c.createRemoteContext(stub, channel))
  }
docs: // updateStubInMapping updates the given RemoteNode and adds it to the MemberMapping