change type order (cosmetic)

This commit is contained in:
Christian Ulrich 2020-07-07 19:34:34 +02:00
parent f22bd5eacc
commit ebcab0fd74
No known key found for this signature in database
GPG Key ID: 8241BE099775A097
1 changed files with 6 additions and 5 deletions

View File

@ -6,6 +6,12 @@ import ../../message
# connect from our LAN # connect from our LAN
type type
Client = object
sock: AsyncSocket
ip: IpAddress
ports: array[3, Port]
# Requests
Register = object Register = object
peerId: string peerId: string
ip: IpAddress ip: IpAddress
@ -19,11 +25,6 @@ type
recipient: string recipient: string
data: string data: string
Client = object
sock: AsyncSocket
ip: IpAddress
ports: array[3, Port]
proc removeClient(clients: TableRef[string, Client], peerId: string) = proc removeClient(clients: TableRef[string, Client], peerId: string) =
if peerId.len > 0: clients.del(peerId) if peerId.len > 0: clients.del(peerId)