Make timeout constants into time.Duration values.

This slightly changes some log messages.
This commit is contained in:
David Fifield 2019-12-24 18:39:43 -07:00
parent dfb83c6606
commit a2292ce35b
3 changed files with 10 additions and 9 deletions

View file

@ -6,11 +6,12 @@ import (
"log"
"net"
"sync"
"time"
)
const (
ReconnectTimeout = 10
SnowflakeTimeout = 30
ReconnectTimeout = 10 * time.Second
SnowflakeTimeout = 30 * time.Second
)
// Given an accepted SOCKS connection, establish a WebRTC connection to the