Skip to content

Commit

Permalink
Merge pull request #746 from ava-labs/add-call-to-update-blockchains-…
Browse files Browse the repository at this point in the history
…info

add call to update cluster status
  • Loading branch information
felipemadero authored Nov 26, 2024
2 parents 71784ad + 1d95039 commit f83b675
Show file tree
Hide file tree
Showing 6 changed files with 1,025 additions and 772 deletions.
5 changes: 5 additions & 0 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ type Client interface {
RemoveSubnetValidator(ctx context.Context, validatorSpec []*rpcpb.RemoveSubnetValidatorSpec) (*rpcpb.RemoveSubnetValidatorResponse, error)
AddSubnetValidators(ctx context.Context, validatorSpec []*rpcpb.SubnetValidatorsSpec) (*rpcpb.AddSubnetValidatorsResponse, error)
Health(ctx context.Context) (*rpcpb.HealthResponse, error)
UpdateStatus(ctx context.Context) (*rpcpb.UpdateStatusResponse, error)
WaitForHealthy(ctx context.Context) (*rpcpb.WaitForHealthyResponse, error)
URIs(ctx context.Context) ([]string, error)
Status(ctx context.Context) (*rpcpb.StatusResponse, error)
Expand Down Expand Up @@ -238,6 +239,10 @@ func (c *client) Health(ctx context.Context) (*rpcpb.HealthResponse, error) {
return c.controlc.Health(ctx, &rpcpb.HealthRequest{})
}

func (c *client) UpdateStatus(ctx context.Context) (*rpcpb.UpdateStatusResponse, error) {
return c.controlc.UpdateStatus(ctx, &rpcpb.UpdateStatusRequest{})
}

func (c *client) WaitForHealthy(ctx context.Context) (*rpcpb.WaitForHealthyResponse, error) {
c.log.Info("wait for healthy")
return c.controlc.WaitForHealthy(ctx, &rpcpb.WaitForHealthyRequest{})
Expand Down
Loading

0 comments on commit f83b675

Please sign in to comment.