[ 4843 ] Update the consul config to use replicas instead of global.
Remove yield from session renewal - cut and paste error
Change-Id: I04bd6e6d7872090235f731ec56a53cce33a0aad2
diff --git a/compose/docker-compose-consul-cluster.yml b/compose/docker-compose-consul-cluster.yml
index 18a6534..eb2fe63 100644
--- a/compose/docker-compose-consul-cluster.yml
+++ b/compose/docker-compose-consul-cluster.yml
@@ -15,7 +15,7 @@
# Deploy to all docker manager nodes
deploy:
- mode: global
+ replicas: 3
placement:
constraints:
- node.role == manager
diff --git a/voltha/coordinator.py b/voltha/coordinator.py
index 227be5d..cf38d69 100644
--- a/voltha/coordinator.py
+++ b/voltha/coordinator.py
@@ -337,7 +337,7 @@
# Set a timeout timer (~ 2 secs) - should be more than
# enough to renew a session
rcvd = DeferredWithTimeout(timeout=self.session_renewal_timeout)
- yield _renew_session(rcvd)
+ _renew_session(rcvd)
try:
_ = yield rcvd
except TimeOutError as e: