Update tunnel

This commit is contained in:
Asim Aslam 2020-08-06 18:50:35 +01:00
parent dcf785677f
commit fb8533b74e
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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)