Benjamin Bannier created MESOS-4276:
---------------------------------------

             Summary: Remove dupicate Mesos constructor
                 Key: MESOS-4276
                 URL: https://issues.apache.org/jira/browse/MESOS-4276
             Project: Mesos
          Issue Type: Improvement
          Components: technical debt
            Reporter: Benjamin Bannier
            Assignee: Benjamin Bannier


{{Mesos}} offers two almost-identical constructors
{code}
  // TODO(vinod): Remove this in favor of the below constructor.
  Mesos(const std::string& master,
        const std::function<void(void)>& connected,
        const std::function<void(void)>& disconnected,
        const std::function<void(const std::queue<Event>&)>& received);

  Mesos(const std::string& master,
        ContentType contentType,
        const std::function<void(void)>& connected,
        const std::function<void(void)>& disconnected,
        const std::function<void(const std::queue<Event>&)>& received);
{code}

Here invocations of the first constructor can replaced trivially with
invocations of the second one with {{contentType = ContentType::PROTOBUF}}.




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to