Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
xxjwxc committed May 9, 2020
1 parent 63d3a7d commit ccfd454
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions micro.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ func newService(opts ...Option) Service {
s := &service{
opts: options,
}
s.Init()

if !IsExist(s.Name()) {
initService(s.Name(), s)
} else {
Expand Down
8 changes: 4 additions & 4 deletions option.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ type Options struct {

// newOptions default of option define
func newOptions(opts ...Option) Options {
reg := registry.NewDNSNamingRegistry()
// reg := registry.NewDNSNamingRegistry()
opt := Options{
Client: client.DefaultNamingClient,
Server: server.DefaultNamingServer,
Registry: &registry.Registry{
RegNaming: reg,
},
// Registry: &registry.Registry{
// RegNaming: reg,
// },
Context: context.Background(),
}

Expand Down

0 comments on commit ccfd454

Please sign in to comment.