Update tunnel
This commit is contained in:
parent
dcf785677f
commit
fb8533b74e
@ -19,6 +19,9 @@ var (
|
||||
KeepAliveTime = 30 * time.Second
|
||||
// ReconnectTime defines time interval we periodically attempt to reconnect dead links
|
||||
ReconnectTime = 5 * time.Second
|
||||
|
||||
// create a logger
|
||||
log = logger.NewHelper(logger.DefaultLogger).WithFields(map[string]interface{}{"package": "tunnel"})
|
||||
)
|
||||
|
||||
// tun represents a network tunnel
|
||||
|
@ -4,7 +4,6 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/google/uuid"
|
||||
"github.com/micro/go-micro/v3/logger"
|
||||
"github.com/micro/go-micro/v3/transport"
|
||||
"github.com/micro/go-micro/v3/transport/quic"
|
||||
)
|
||||
@ -14,7 +13,6 @@ var (
|
||||
DefaultAddress = ":0"
|
||||
// The shared default token
|
||||
DefaultToken = "go.micro.tunnel"
|
||||
log = logger.NewHelper(logger.DefaultLogger).WithFields(map[string]interface{}{"service": "tunnel"})
|
||||
)
|
||||
|
||||
type Option func(*Options)
|
||||
|
Loading…
x
Reference in New Issue
Block a user