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 := server.NewServer(
|
||||
server.Name(DefaultName),
|
||||
server.Transport(tunTransport),
|
||||
)
|
||||
|
||||
|
@ -10,7 +10,7 @@ import (
|
||||
|
||||
var (
|
||||
// DefaultName is default network name
|
||||
DefaultName = "go.micro.network"
|
||||
DefaultName = "go.micro"
|
||||
// DefaultAddress is default network address
|
||||
DefaultAddress = ":0"
|
||||
// ResolveTime ddefines the time to periodically resolve network nodes
|
||||
|
Loading…
x
Reference in New Issue
Block a user