func (handler *ConsensusHandler) SendMessage(msg *pb.Message) error {
	logger.Debug("Sending to stream a message of type: %s", msg.Type)
	// hand over the message to the peerHandler to serialize
	err := handler.peerHandler.SendMessage(msg)
	if err != nil {
		return fmt.Errorf("Error sending message through ChatStream: %s", err)
	}
	return nil
}
// SendMessage sends a message to the remote Peer through the stream
SendMessage sends a message to the remote Peer through the stream
// SendMessage sends a message to the remote Peer through the stream
func (handler *ConsensusHandler) SendMessage(msg *pb.Message) error {
	logger.Debug("Sending to stream a message of type: %s", msg.Type)
	err := handler.peerHandler.SendMessage(msg)
	if err != nil {
		return fmt.Errorf("Error sending message through ChatStream: %s", err)
	}
	return nil
}
func ( handler * ConsensusHandler ) SendMessage ( msg * pb . Message ) error { logger . Debug ( " " , msg . Type ) err := handler . peerHandler . SendMessage ( msg ) if err != nil { return fmt . Errorf ( " " , err ) } return nil }
SendMessage sends a message to the remote Peer through the stream
SendMessage sends a message to the remote Peer through the stream
// hand over the message to the peerHandler to serialize