Skip to content

Commit

Permalink
Remove invalid ZMQ option
Browse files Browse the repository at this point in the history
ROUTING_ID is for router/dealer sockets
  • Loading branch information
ltrzesniewski committed Nov 9, 2021
1 parent a10b99f commit 965a68d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/Abc.Zebus/Transport/ZmqInboundSocket.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ private ZmqSocket CreateSocket()
var socket = new ZmqSocket(_context, ZmqSocketType.PULL);
socket.SetOption(ZmqSocketOption.RCVHWM, _options.ReceiveHighWaterMark);
socket.SetOption(ZmqSocketOption.RCVTIMEO, (int)_options.ReceiveTimeout.TotalMilliseconds);
socket.SetOption(ZmqSocketOption.ROUTING_ID, Encoding.ASCII.GetBytes(_peerId.ToString()));

_lastReceiveTimeout = _options.ReceiveTimeout;

Expand Down
2 changes: 0 additions & 2 deletions src/Abc.Zebus/Transport/ZmqOutboundSocket.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,6 @@ private ZmqSocket CreateSocket()
socket.SetOption(ZmqSocketOption.TCP_KEEPALIVE_INTVL, (int)_options.KeepAlive.KeepAliveInterval.Value.TotalSeconds);
}

socket.SetOption(ZmqSocketOption.ROUTING_ID, Encoding.ASCII.GetBytes(PeerId.ToString()));

return socket;
}

Expand Down

0 comments on commit 965a68d

Please sign in to comment.