feat: change seed peer state to active in UpdateSeedPeer api (#2592)
feat: update seed peer state to active Signed-off-by: Gaius <gaius.qi@gmail.com>
This commit is contained in:
parent
733b938862
commit
db82dd9e31
|
|
@ -205,6 +205,7 @@ func (s *managerServerV1) UpdateSeedPeer(ctx context.Context, req *managerv1.Upd
|
|||
Port: req.GetPort(),
|
||||
DownloadPort: req.GetDownloadPort(),
|
||||
ObjectStoragePort: req.GetObjectStoragePort(),
|
||||
State: models.SeedPeerStateActive,
|
||||
SeedPeerClusterID: uint(req.GetSeedPeerClusterId()),
|
||||
}).Error; err != nil {
|
||||
return nil, status.Error(codes.Internal, err.Error())
|
||||
|
|
|
|||
|
|
@ -205,6 +205,7 @@ func (s *managerServerV2) UpdateSeedPeer(ctx context.Context, req *managerv2.Upd
|
|||
Port: req.GetPort(),
|
||||
DownloadPort: req.GetDownloadPort(),
|
||||
ObjectStoragePort: req.GetObjectStoragePort(),
|
||||
State: models.SeedPeerStateActive,
|
||||
SeedPeerClusterID: uint(req.GetSeedPeerClusterId()),
|
||||
}).Error; err != nil {
|
||||
return nil, status.Error(codes.Internal, err.Error())
|
||||
|
|
|
|||
Loading…
Reference in New Issue