Skip to content

Commit

Permalink
Feature: support update framework
Browse files Browse the repository at this point in the history
  • Loading branch information
sunhaidong1 committed Feb 6, 2025
1 parent 4a07d7e commit a9691f5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
7 changes: 6 additions & 1 deletion datasource/etcd/ms.go
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,12 @@ func (ds *MetadataManager) PutServiceProperties(ctx context.Context, request *pb
}

copyServiceRef := *microservice
copyServiceRef.Properties = request.Properties
if request.Properties != nil {
copyServiceRef.Properties = request.Properties
}
if request.Framework != nil {
copyServiceRef.Framework = request.Framework
}
copyServiceRef.ModTimestamp = strconv.FormatInt(time.Now().Unix(), 10)

data, err := json.Marshal(copyServiceRef)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ require (
github.com/cloudflare/gokey v0.1.2
github.com/deckarep/golang-set v1.8.0
github.com/elithrar/simple-scrypt v1.3.0
github.com/go-chassis/cari v0.9.1-0.20240620034337-b6769eaccc12
github.com/go-chassis/cari v0.9.1-0.20250206085436-b02623c62de2
github.com/go-chassis/etcdadpt v0.5.3-0.20240328092602-984e34b756fe
github.com/go-chassis/foundation v0.4.0
github.com/go-chassis/go-archaius v1.5.6
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,8 @@ github.com/go-chassis/cari v0.4.0/go.mod h1:av/19fqwEP4eOC8unL/z67AAbFDwXUCko6SK
github.com/go-chassis/cari v0.5.0/go.mod h1:av/19fqwEP4eOC8unL/z67AAbFDwXUCko6SKa4Avrd8=
github.com/go-chassis/cari v0.5.1-0.20210823023004-74041d1363c4/go.mod h1:av/19fqwEP4eOC8unL/z67AAbFDwXUCko6SKa4Avrd8=
github.com/go-chassis/cari v0.6.0/go.mod h1:mSDRCOQXGmlD69A6NG0hsv0UP1xbVPtL6HCGI6X1tqs=
github.com/go-chassis/cari v0.9.1-0.20240620034337-b6769eaccc12 h1:aIES1QkxyVrCUvR6UD/U8qN9cXHLf3scp2I4+8NbQR4=
github.com/go-chassis/cari v0.9.1-0.20240620034337-b6769eaccc12/go.mod h1:ibqLyh+Q+1n9PlldW3glD9G+2s/yeSyVMCCkQWKRwuE=
github.com/go-chassis/cari v0.9.1-0.20250206085436-b02623c62de2 h1:XCav5UOU6Vu9G45EIaaAuhqb4zWAGFP3B/fzxo9TBwQ=
github.com/go-chassis/cari v0.9.1-0.20250206085436-b02623c62de2/go.mod h1:ibqLyh+Q+1n9PlldW3glD9G+2s/yeSyVMCCkQWKRwuE=
github.com/go-chassis/etcdadpt v0.5.3-0.20240328092602-984e34b756fe h1:peLHEt3wzab6nKVcmcu0qkj1+ZXK6D1ymtiyyMBv/XA=
github.com/go-chassis/etcdadpt v0.5.3-0.20240328092602-984e34b756fe/go.mod h1:HV8OZ1Npu+lttD+pJA5nUxWZR3/SBFetTh7w8nYFkUA=
github.com/go-chassis/foundation v0.2.2-0.20201210043510-9f6d3de40234/go.mod h1:2PjwqpVwYEVaAldl5A58a08viH8p27pNeYaiE3ZxOBA=
Expand Down

0 comments on commit a9691f5

Please sign in to comment.