From ac24b47a199dcdf31cb54f51df00fffa8a40dd80 Mon Sep 17 00:00:00 2001 From: lbbniu Date: Sat, 17 Jun 2023 12:06:55 +0800 Subject: [PATCH] fix --- tars/registry.go | 2 +- tars/registry/registry.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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"` }