diff options
author | Rafael H. Schloming <rhs@apache.org> | 2009-10-12 14:34:42 +0000 |
---|---|---|
committer | Rafael H. Schloming <rhs@apache.org> | 2009-10-12 14:34:42 +0000 |
commit | e3f567d6a23c8e3e9ea6689a31e3e89df57491fd (patch) | |
tree | baab6b10a5c05badf5c3294e50835d832f6f052f /python/examples/api | |
parent | a4e1595263c5595af6ec04d09df94c02155cb644 (diff) | |
download | qpid-python-e3f567d6a23c8e3e9ea6689a31e3e89df57491fd.tar.gz |
renamed ping to spout
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@824361 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/examples/api')
-rwxr-xr-x | python/examples/api/spout (renamed from python/examples/api/ping) | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/python/examples/api/ping b/python/examples/api/spout index 7d3686e7cf..c78c13524d 100755 --- a/python/examples/api/ping +++ b/python/examples/api/spout @@ -51,9 +51,9 @@ opts, args = parser.parse_args() url = URL(opts.broker) if opts.id is None: - ping_id = str(uuid4()) + spout_id = str(uuid4()) else: - ping_id = opts.id + spout_id = opts.id if args: addr = args.pop(0) else: @@ -87,7 +87,7 @@ start = time.time() while (opts.count == 0 or count < opts.count) and \ (opts.timeout is None or time.time() - start < opts.timeout): msg = Message(content, reply_to=opts.reply_to) - msg.properties["ping-id"] = "%s:%s" % (ping_id, count) + msg.properties["spout-id"] = "%s:%s" % (spout_id, count) for p in opts.properties: name, val = nameval(p) msg.properties[name] = val |