Example #1
0
def _get_message():
    return nsq.Message("1234", "{}", 1234, 0)
Example #2
0
def _get_message(conn):
    msg = nsq.Message("1234", "{}", 1234, 0)
    msg.on('finish', conn._on_message_finish)
    msg.on('requeue', conn._on_message_requeue)
    return msg
Example #3
0
def _get_test_message():
    msg = nsq.Message("1234", "{}", 1234, 0)
    return msg