From ebcab0fd741fd43e5227efa900e755f94b506252 Mon Sep 17 00:00:00 2001 From: Christian Ulrich Date: Tue, 7 Jul 2020 19:34:34 +0200 Subject: [PATCH] change type order (cosmetic) --- examples/rendezvous_server/rendezvous_server.nim | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/examples/rendezvous_server/rendezvous_server.nim b/examples/rendezvous_server/rendezvous_server.nim index 9bb71a3..ac25bb7 100644 --- a/examples/rendezvous_server/rendezvous_server.nim +++ b/examples/rendezvous_server/rendezvous_server.nim @@ -6,6 +6,12 @@ import ../../message # connect from our LAN type + Client = object + sock: AsyncSocket + ip: IpAddress + ports: array[3, Port] + + # Requests Register = object peerId: string ip: IpAddress @@ -19,11 +25,6 @@ type recipient: string data: string - Client = object - sock: AsyncSocket - ip: IpAddress - ports: array[3, Port] - proc removeClient(clients: TableRef[string, Client], peerId: string) = if peerId.len > 0: clients.del(peerId)