mirror of
https://github.com/xcat2/confluent.git
synced 2025-01-16 20:57:53 +00:00
Fix reuse of channel for receiving changes
This commit is contained in:
parent
d11c716b6a
commit
e5f553801b
@ -48,7 +48,8 @@ def connect_to_leader(cert=None, name=None):
|
||||
raise Exception("Certificate mismatch in the collective")
|
||||
tlvdata.recv(remote) # the banner
|
||||
tlvdata.recv(remote) # authpassed... 0..
|
||||
tlvdata.send(remote, {'collective': {'operation': 'connect', 'name': name}})
|
||||
tlvdata.send(remote, {'collective': {'operation': 'connect',
|
||||
'name': name}})
|
||||
keydata = tlvdata.recv(remote)
|
||||
colldata = tlvdata.recv(remote)
|
||||
globaldata = tlvdata.recv(remote)
|
||||
|
@ -416,8 +416,7 @@ def follow_channel(channel):
|
||||
_txcount = rpc['txcount']
|
||||
if 'xid' in rpc:
|
||||
_pendingchangesets[rpc['xid']].send()
|
||||
|
||||
|
||||
msg = channel.recv(8)
|
||||
|
||||
def add_collective_member(name, address, fingerprint):
|
||||
try:
|
||||
|
Loading…
x
Reference in New Issue
Block a user