diff --git a/tars/registry.go b/tars/registry.go index d614a954..aa15079f 100644 --- a/tars/registry.go +++ b/tars/registry.go @@ -38,9 +38,9 @@ func (a *application) deregisterAdapters(ctx context.Context) { TarsVersion: Version, App: svrCfg.App, Server: svrCfg.Server, - Servant: adapter.Obj, EnableSet: svrCfg.Enableset, SetDivision: svrCfg.Setdivision, + Servant: adapter.Obj, Protocol: adapter.Protocol, Endpoint: adapter.Endpoint, } diff --git a/tars/registry/registry.go b/tars/registry/registry.go index d4c24a5c..7e91c6e3 100644 --- a/tars/registry/registry.go +++ b/tars/registry/registry.go @@ -12,10 +12,10 @@ type ServantInstance struct { TarsVersion string `json:"tars_version"` App string `json:"app"` Server string `json:"server"` - Servant string `json:"servant"` EnableSet bool `json:"enable_set"` SetDivision string `json:"set_division"` Protocol string `json:"protocol"` + Servant string `json:"servant"` Endpoint endpoint.Endpoint `json:"endpoint"` }