1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-12-24 10:07:04 +02:00

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 := server.NewServer(
server.Name(DefaultName),
server.Transport(tunTransport),
)

View File

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