Skip to content

Commit

Permalink
submaster always conflates
Browse files Browse the repository at this point in the history
  • Loading branch information
pd0wm committed May 21, 2020
1 parent 30838d4 commit 4bb1eb8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions messaging/messaging.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class Poller {
class SubMaster {
public:
SubMaster(const std::initializer_list<const char *> &service_list,
const char *address = nullptr, bool conflate = false, const std::initializer_list<const char *> &ignore_alive = {});
const char *address = nullptr, const std::initializer_list<const char *> &ignore_alive = {});
int update(int timeout = 1000);
inline bool allAlive(const std::initializer_list<const char *> &service_list = {}) { return all_(service_list, false, true); }
inline bool allValid(const std::initializer_list<const char *> &service_list = {}) { return all_(service_list, true, false); }
Expand Down Expand Up @@ -90,4 +90,3 @@ class PubMaster {
private:
std::map<std::string, PubSocket *> sockets_;
};

4 changes: 2 additions & 2 deletions messaging/socketmaster.cc
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ struct SubMaster::SubMessage {
};

SubMaster::SubMaster(const std::initializer_list<const char *> &service_list, const char *address,
bool conflate, const std::initializer_list<const char *> &ignore_alive) {
const std::initializer_list<const char *> &ignore_alive) {
poller_ = Poller::create();
for (auto name : service_list) {
const service *serv = get_service(name);
assert(serv != nullptr);
SubSocket *socket = SubSocket::create(ctx.ctx_, name, address ? address : "127.0.0.1", conflate);
SubSocket *socket = SubSocket::create(ctx.ctx_, name, address ? address : "127.0.0.1", true);
assert(socket != 0);
poller_->registerSocket(socket);
SubMessage *m = new SubMessage{
Expand Down

0 comments on commit 4bb1eb8

Please sign in to comment.