ZMQImagePuller: Fix republish socket direction

This commit is contained in:
2024-03-08 09:37:47 +01:00
parent 48f7318438
commit 19dbbdd8bb

View File

@@ -10,7 +10,7 @@ ZMQImagePuller::ZMQImagePuller(ZMQContext &context, const std::string &repub_add
zmq_recv_buffer.reserve(2*1024*1024); // Reasonable size 2 MiB
if (!repub_address.empty()) {
repub_socket = std::make_unique<ZMQSocket>(context, ZMQSocketType::Pull);
repub_socket = std::make_unique<ZMQSocket>(context, ZMQSocketType::Push);
repub_socket->SendWaterMark(100);
repub_socket->SendTimeout(std::chrono::milliseconds(100));
repub_socket->Bind(repub_address);