def runserver(conf: ConfigParser) -> None:
- qry = import_module("." + conf.get("rectifier", "backend"), __package__)
+ qry = import_module("." + conf.get("rectifier", "lookaside"), __package__)
qry.init(conf)
# Is this https://github.com/zeromq/pyzmq/issues/1627 still not fixed?!
zctx = zmq.Context() # type: ignore
zsub.setsockopt(zmq.SUBSCRIBE, topic(proto_name(WIFI_POSITIONING)))
zpush = zctx.socket(zmq.PUSH) # type: ignore
zpush.connect(conf.get("collector", "listenurl"))
+ zpub = zctx.socket(zmq.PUB) # type: ignore
+ zpub.connect(conf.get("rectifier", "publishurl"))
try:
while True:
except KeyboardInterrupt:
zsub.close()
+ zpub.close()
zpush.close()
zctx.destroy() # type: ignore
qry.shut()