Increase load peer timeout (#1396)

Temporary workaround for a rare issue where many peers (> hundreds)
cause a timeout for the `GenServer.call` function, preventing the
`wireguard_public_key` from being set properly.

This will be removed in 0.8, so only an increased timeout is needed for
now.
This commit is contained in:
Jamil
2023-01-31 18:56:23 -08:00
committed by GitHub
parent 9b086dc3de
commit b64adda2ce

View File

@@ -10,7 +10,7 @@ defmodule FzVpn.Server do
alias FzVpn.Keypair
@process_opts Application.compile_env(:fz_vpn, :server_process_opts, [])
@init_timeout 1_000
@init_timeout 10_000
def start_link(_) do
GenServer.start_link(__MODULE__, %{}, @process_opts)