less redundant naming
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
from bsread.sender import Sender, PUB
|
||||
|
||||
|
||||
def make_bsread_sender(bsread_host="*", bsread_port=None):
|
||||
if not bsread_port:
|
||||
def make_bsread_sender(host="*", port=None):
|
||||
if not port:
|
||||
return None
|
||||
address = f"tcp://{bsread_host}"
|
||||
sender = Sender(address=address, port=bsread_port, block=False, mode=PUB)
|
||||
address = f"tcp://{host}"
|
||||
sender = Sender(address=address, port=port, block=False, mode=PUB)
|
||||
sender.open()
|
||||
return sender
|
||||
|
||||
|
||||
Reference in New Issue
Block a user