Skip to content

Commit

Permalink
fix registry
Browse files Browse the repository at this point in the history
  • Loading branch information
xxjwxc committed May 23, 2021
1 parent c739105 commit 34c0878
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion micro_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,5 @@ func TestMain(t *testing.T) {

// process, _ := os.FindProcess(os.Getpid())
// process.Signal(syscall.SIGTERM)
time.Sleep(10 * time.Second)
time.Sleep(1 * time.Second)
}
2 changes: 1 addition & 1 deletion option.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func newOptions(opts ...Option) Options {
o(&opt)
}

if opt.Registry == nil {
if opt.Registry == nil { // 默认注册 服务发现
opt.Registry = &registry.Registry{
RegNaming: registry.NewDNSNamingRegistry(),
}
Expand Down

0 comments on commit 34c0878

Please sign in to comment.