def write_in_queue():
    args = _create_mock_args()
    queue = TransactionQueue()

    idx = 0
    while idx < 5000:
        args.value = str(idx)
        queue.enqueue_transaction(args)
        time.sleep(0.001)
        idx += 1
Example #2
0
def enqueue_transaction(args):
    queue = TransactionQueue()
    queue.enqueue_transaction(args)