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:
Gaius 2023-08-03 10:26:01 +08:00 committed by GitHub
parent 733b938862
commit db82dd9e31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -205,6 +205,7 @@ func (s *managerServerV1) UpdateSeedPeer(ctx context.Context, req *managerv1.Upd
Port: req.GetPort(), Port: req.GetPort(),
DownloadPort: req.GetDownloadPort(), DownloadPort: req.GetDownloadPort(),
ObjectStoragePort: req.GetObjectStoragePort(), ObjectStoragePort: req.GetObjectStoragePort(),
State: models.SeedPeerStateActive,
SeedPeerClusterID: uint(req.GetSeedPeerClusterId()), SeedPeerClusterID: uint(req.GetSeedPeerClusterId()),
}).Error; err != nil { }).Error; err != nil {
return nil, status.Error(codes.Internal, err.Error()) return nil, status.Error(codes.Internal, err.Error())

View File

@ -205,6 +205,7 @@ func (s *managerServerV2) UpdateSeedPeer(ctx context.Context, req *managerv2.Upd
Port: req.GetPort(), Port: req.GetPort(),
DownloadPort: req.GetDownloadPort(), DownloadPort: req.GetDownloadPort(),
ObjectStoragePort: req.GetObjectStoragePort(), ObjectStoragePort: req.GetObjectStoragePort(),
State: models.SeedPeerStateActive,
SeedPeerClusterID: uint(req.GetSeedPeerClusterId()), SeedPeerClusterID: uint(req.GetSeedPeerClusterId()),
}).Error; err != nil { }).Error; err != nil {
return nil, status.Error(codes.Internal, err.Error()) return nil, status.Error(codes.Internal, err.Error())