summaryrefslogtreecommitdiff
path: root/qpid/python/examples/api/drain
diff options
context:
space:
mode:
Diffstat (limited to 'qpid/python/examples/api/drain')
-rwxr-xr-xqpid/python/examples/api/drain6
1 files changed, 3 insertions, 3 deletions
diff --git a/qpid/python/examples/api/drain b/qpid/python/examples/api/drain
index d7ac03afa6..372426c801 100755
--- a/qpid/python/examples/api/drain
+++ b/qpid/python/examples/api/drain
@@ -33,8 +33,8 @@ parser.add_option("-f", "--forever", action="store_true",
help="ignore timeout and wait forever")
parser.add_option("-r", "--reconnect", action="store_true",
help="enable auto reconnect")
-parser.add_option("-d", "--reconnect-delay", type=float, default=3,
- help="delay between reconnect attempts")
+parser.add_option("-i", "--reconnect-interval", type=float, default=3,
+ help="interval between reconnect attempts")
parser.add_option("-l", "--reconnect-limit", type=int,
help="maximum number of reconnect attempts")
parser.add_option("-t", "--timeout", type=float, default=0,
@@ -77,7 +77,7 @@ conn = Connection(url.host, url.port,
username=url.user,
password=url.password,
reconnect=opts.reconnect,
- reconnect_delay=opts.reconnect_delay,
+ reconnect_interval=opts.reconnect_interval,
reconnect_limit=opts.reconnect_limit)
try:
conn.connect()