Skip to content
This repository has been archived by the owner on Oct 26, 2023. It is now read-only.

Commit

Permalink
Fixed updating peers
Browse files Browse the repository at this point in the history
  • Loading branch information
rtrevinnoc committed Mar 10, 2021
1 parent 83de910 commit 7e0b0a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions future.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ def sendRegisterRequestToPeer(url):
print("peer:, ", peer)
print("#######################")
if peer == hostIP or peer == hostname:
if peer != hostname:
listOfPeers.append(peer)
elif hostname == "wearebuildingthefuture.com"
if hostname == "wearebuildingthefuture.com":
listOfPeers.append(hostname)
elif peer != hostname:
listOfPeers.append(peer)
listOfPeers = list(set(listOfPeers))
print("Same as origin")
return "Same as origin"
Expand Down

0 comments on commit 7e0b0a9

Please sign in to comment.