mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08: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.Timeout = 5 * time.Second
|
||||
err = pinger.Run()
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user