mirror of
https://github.com/coder/coder.git
synced 2025-07-13 21:36:50 +00:00
fix: Add timeout to selecting a dev tunnel (#4592)
For some reason this timed out for a prospect. Even if this doesn't fix it, the problem will be revealed.
This commit is contained in:
@ -73,6 +73,7 @@ func FindClosestNode() (Node, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pinger.Count = 5
|
pinger.Count = 5
|
||||||
|
pinger.Timeout = 5 * time.Second
|
||||||
err = pinger.Run()
|
err = pinger.Run()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
Reference in New Issue
Block a user