1
0
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:
Tony Chen
2021-05-28 15:30:55 +08:00
committed by GitHub
parent 41ea1fbc76
commit 4cb3fd62e3
4 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -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