Skip to content

Commit

Permalink
derive APP_SERVER_ADDRESS from APP_SERVER_ADDRESSES
Browse files Browse the repository at this point in the history
  • Loading branch information
Sid-Bhatia-0 committed Mar 23, 2024
1 parent a3f40ec commit fea28a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions netcode/simulate.jl
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ const TIMEOUT_SECONDS = TYPE_OF_TIMEOUT_SECONDS(5)

const CONNECT_TOKEN_EXPIRE_SECONDS = 10

const APP_SERVER_ADDRESS = Sockets.InetAddr(Sockets.localhost, 10001)

const AUTH_SERVER_ADDRESS = Sockets.InetAddr(Sockets.localhost, 10000)

const APP_SERVER_ADDRESSES = [APP_SERVER_ADDRESS]
const APP_SERVER_ADDRESSES = [Sockets.InetAddr(Sockets.localhost, 10001)]

const APP_SERVER_ADDRESS = APP_SERVER_ADDRESSES[1]

@assert 1 <= length(APP_SERVER_ADDRESSES) <= MAX_NUM_SERVER_ADDRESSES

Expand Down

0 comments on commit fea28a4

Please sign in to comment.