Skip to content

Commit 5f6096c

Browse files
committed
header --> properties
1 parent 8f4b1ed commit 5f6096c

File tree

6 files changed

+5
-5
lines changed

6 files changed

+5
-5
lines changed

python/emit_log_topic.py

100644100755
File mode changed.

python/receive.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
print ' [*] Waiting for messages. To exit press CTRL+C'
1212

13-
def callback(ch, method, header, body):
13+
def callback(ch, method, properties, body):
1414
print " [x] Received %r" % (body,)
1515

1616
channel.basic_consume(callback,

python/receive_logs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
print ' [*] Waiting for logs. To exit press CTRL+C'
1818

19-
def callback(ch, method, header, body):
19+
def callback(ch, method, properties, body):
2020
print " [x] %r" % (body,)
2121

2222
channel.basic_consume(callback,

python/receive_logs_direct.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
print ' [*] Waiting for logs. To exit press CTRL+C'
2626

27-
def callback(ch, method, header, body):
27+
def callback(ch, method, properties, body):
2828
print " [x] %r:%r" % (method.routing_key, body,)
2929

3030
channel.basic_consume(callback,

python/receive_logs_topic.py

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
print ' [*] Waiting for logs. To exit press CTRL+C'
2626

27-
def callback(ch, method, header, body):
27+
def callback(ch, method, properties, body):
2828
print " [x] %r:%r" % (method.routing_key, body,)
2929

3030
channel.basic_consume(callback,

python/worker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
channel.queue_declare(queue='task_queue', durable=True)
1010
print ' [*] Waiting for messages. To exit press CTRL+C'
1111

12-
def callback(ch, method, header, body):
12+
def callback(ch, method, properties, body):
1313
print " [x] Received %r" % (body,)
1414
time.sleep( body.count('.') )
1515
print " [x] Done"

0 commit comments

Comments
 (0)