code: func (m *Memberlist) encodeBroadcastNotify(node string, msgType messageType, msg interface{}, notify chan struct{}) {
  	buf, err := encode(msgType, msg)
  	if err != nil {
  		m.logger.Printf("[ERR] memberlist: Failed to encode message for broadcast: %s", err)
  	} else {
  		m.queueBroadcast(node, buf.Bytes(), notify)
  	}
  }
docs: // encodeBroadcastNotify encodes a message and enqueues it for broadcast
  // and notifies the given channel when transmission is finished. Fails
  // silently if there is an encoding error.