Update peer.py
This commit is contained in:
1 parent
654c4e4258
commit
4b6516fc99
1 file changed
+6
-3
+6
-3
@@ -28,9 +28,12 @@ if not INTRODUCER_FLAG:
|
||||
|
||||
while True:
|
||||
data, addr = server.recvfrom(4096)
|
||||
if data == "JOIN":
|
||||
print(True)
|
||||
print(data)
|
||||
if data == b"JOIN":
|
||||
members_list[addr] = {
|
||||
"heart_beat": 1,
|
||||
"last_seen": utc_time()
|
||||
}
|
||||
print(members_list)
|
||||
|
||||
|
||||
#increment heart beat
|
||||
Reference in new issue
Block a user