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, Tracer: tracer.DefaultTracer,
Broker: broker.DefaultBroker, Broker: broker.DefaultBroker,
Registry: registry.DefaultRegistry, Registry: registry.DefaultRegistry,
Transport: transport.DefaultTransport,
Address: DefaultAddress, Address: DefaultAddress,
Name: DefaultName, Name: DefaultName,
Version: DefaultVersion, Version: DefaultVersion,
Id: DefaultId, Id: DefaultId,
Transport: transport.DefaultTransport, Namespace: DefaultNamespace,
} }
for _, o := range opts { for _, o := range opts {

View File

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