require "zhelpers"
local zmq = require "lzmq"
---------------------------PULL--------------------
local ztimer = require "lzmq.timer"
local context = zmq.context()
local receiver,err = context:socket{zmq.PULL,bind = "tcp://*:5558"}
zassert(receiver, err)
-- Wait for start of batch
-- receiver:recv()
-- Start our clock now
local timer = ztimer.monotonic():start()
print("111111111")
-- Process 100 confirmations
for task_nbr = 1, 10 do
print("22222222")
local message = receiver:recv();
if task_nbr % 10 == 0 then
print(task_nbr)
local zmq = require "lzmq"
---------------------------PULL--------------------
local ztimer = require "lzmq.timer"
local context = zmq.context()
local receiver,err = context:socket{zmq.PULL,bind = "tcp://*:5558"}
zassert(receiver, err)
-- Wait for start of batch
-- receiver:recv()
-- Start our clock now
local timer = ztimer.monotonic():start()
print("111111111")
-- Process 100 confirmations
for task_nbr = 1, 10 do
print("22222222")
local message = receiver:recv();
if task_nbr % 10 == 0 then
print(task_nbr)