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:
|
while True:
|
||||||
data, addr = server.recvfrom(4096)
|
data, addr = server.recvfrom(4096)
|
||||||
if data == "JOIN":
|
if data == b"JOIN":
|
||||||
print(True)
|
members_list[addr] = {
|
||||||
print(data)
|
"heart_beat": 1,
|
||||||
|
"last_seen": utc_time()
|
||||||
|
}
|
||||||
|
print(members_list)
|
||||||
|
|
||||||
|
|
||||||
#increment heart beat
|
#increment heart beat
|
||||||
Reference in new issue
Block a user