fix namespace server issue

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2020-11-05 22:35:05 +03:00
parent e127547799
commit 8fa8afdfa4
2 changed files with 3 additions and 1 deletions

View File

@ -71,11 +71,12 @@ func NewOptions(opts ...Option) Options {
Tracer: tracer.DefaultTracer,
Broker: broker.DefaultBroker,
Registry: registry.DefaultRegistry,
Transport: transport.DefaultTransport,
Address: DefaultAddress,
Name: DefaultName,
Version: DefaultVersion,
Id: DefaultId,
Transport: transport.DefaultTransport,
Namespace: DefaultNamespace,
}
for _, o := range opts {

View File

@ -144,4 +144,5 @@ var (
DefaultRegisterCheck = func(context.Context) error { return nil }
DefaultRegisterInterval = time.Second * 30
DefaultRegisterTTL = time.Second * 90
DefaultNamespace = "micro"
)