Skip to content

Commit

Permalink
Start a new routine when subscribing (#2297)
Browse files Browse the repository at this point in the history
  • Loading branch information
chickenlj committed Apr 7, 2023
1 parent e20025a commit 3fcc135
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion registry/protocol/protocol.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ func (proto *registryProtocol) Refer(url *common.URL) protocol.Invoker {
logger.Errorf("Directory %v is expected to implement Directory, and will return nil invoker!", dic)
return nil
}
regDic.Subscribe(registryUrl.SubURL)
go regDic.Subscribe(registryUrl.SubURL)

err = reg.Register(serviceUrl)
if err != nil {
Expand Down

0 comments on commit 3fcc135

Please sign in to comment.