Set server name. Set default network name.

This commit is contained in:
Milos Gajdos 2019-08-21 19:21:23 +01:00
parent a09d5d2e9a
commit e1599b0f17
No known key found for this signature in database
GPG Key ID: 8B31058CC55DFD4F
2 changed files with 2 additions and 1 deletions

View File

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

View File

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