Set server name. Set default network name.
This commit is contained in:
parent
a09d5d2e9a
commit
e1599b0f17
@ -64,6 +64,7 @@ func newNetwork(opts ...Option) Network {
|
|||||||
|
|
||||||
// srv is network server
|
// srv is network server
|
||||||
srv := server.NewServer(
|
srv := server.NewServer(
|
||||||
|
server.Name(DefaultName),
|
||||||
server.Transport(tunTransport),
|
server.Transport(tunTransport),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ import (
|
|||||||
|
|
||||||
var (
|
var (
|
||||||
// DefaultName is default network name
|
// DefaultName is default network name
|
||||||
DefaultName = "go.micro.network"
|
DefaultName = "go.micro"
|
||||||
// DefaultAddress is default network address
|
// DefaultAddress is default network address
|
||||||
DefaultAddress = ":0"
|
DefaultAddress = ":0"
|
||||||
// ResolveTime ddefines the time to periodically resolve network nodes
|
// ResolveTime ddefines the time to periodically resolve network nodes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user