fix a little bug

This commit is contained in:
ooooo 2016-04-27 16:36:32 +08:00
parent a1c166bb09
commit 25ba87423d
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ class Worker(object):
# send heardbeat package to keep alive in etcd, ttl=2s
def sendheartbeat(self):
while(true):
while(True):
# check send heartbeat package every 1s
time.sleep(1)
[status, value] = self.etcd.getkey("machines/runnodes/"+self.addr)