mirror of
https://github.com/go-kratos/kratos.git
synced 2026-05-22 10:15:24 +02:00
rename Registry to Endpointer (#964)
This commit is contained in:
@@ -113,7 +113,7 @@ func (a *App) Stop() error {
|
||||
func buildInstance(o options) (*registry.ServiceInstance, error) {
|
||||
if len(o.endpoints) == 0 {
|
||||
for _, srv := range o.servers {
|
||||
if r, ok := srv.(transport.Registry); ok {
|
||||
if r, ok := srv.(transport.Endpointer); ok {
|
||||
e, err := r.Endpoint()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in New Issue
Block a user