Skip to content

Commit

Permalink
Small improvement in client
Browse files Browse the repository at this point in the history
  • Loading branch information
xjules committed Dec 16, 2024
1 parent 446704e commit b407664
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/_ert/forward_model_runner/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,9 @@ def __init__(
self.context = zmq.asyncio.Context()
self.socket = self.context.socket(zmq.DEALER)
self.socket.setsockopt(zmq.LINGER, 0)
if dealer_name is None:
self.dealer_id = f"dispatch-{uuid.uuid4().hex[:8]}"
else:
self.dealer_id = dealer_name
self.dealer_id = dealer_name or f"dispatch-{uuid.uuid4().hex[:8]}"
self.socket.setsockopt_string(zmq.IDENTITY, self.dealer_id)
print(f"Created: {self.dealer_id=} {token=} {self._ack_timeout=}")

if token is not None:
client_public, client_secret = zmq.curve_keypair()
self.socket.curve_secretkey = client_secret
Expand Down

0 comments on commit b407664

Please sign in to comment.