Skip to content

Commit

Permalink
feat:support nacos-address server endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
chuntaojun committed Jun 30, 2024
1 parent 0565bfe commit 587ba44
Show file tree
Hide file tree
Showing 5 changed files with 783 additions and 134 deletions.
4 changes: 2 additions & 2 deletions service/client_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func (s *Server) checkAndStoreClient(ctx context.Context, req *apiservice.Client
if nil == client {
needStore = true
} else {
needStore = !clientEquals(client.Proto(), req)
needStore = !ClientEquals(client.Proto(), req)
}
if needStore {
client, resp = s.createClient(ctx, req)
Expand Down Expand Up @@ -155,7 +155,7 @@ func client2Api(client *model.Client) *apiservice.Client {
return out
}

func clientEquals(client1 *apiservice.Client, client2 *apiservice.Client) bool {
func ClientEquals(client1 *apiservice.Client, client2 *apiservice.Client) bool {
if client1.GetId().GetValue() != client2.GetId().GetValue() {
return false
}
Expand Down
Loading

0 comments on commit 587ba44

Please sign in to comment.