code: func needsSplitting(m *raftpb.Message) bool {
  	raftMsg := api.ProcessRaftMessageRequest{Message: m}
  	return m.Type == raftpb.MsgSnap && raftMsg.Size() > GRPCMaxMsgSize
  }
docs: // Function to check if this message needs to be split to be streamed
  // (because it is larger than GRPCMaxMsgSize).
  // Returns true if the message type is MsgSnap
  // and size larger than MaxRaftMsgSize.