Skip to content

Commit

Permalink
Merge pull request #578 from onflow/chasefleming/ping-opts
Browse files Browse the repository at this point in the history
Add WaitServer method
  • Loading branch information
chasefleming authored Feb 29, 2024
2 parents 66d5a88 + 150b76d commit 6434b7e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions access/grpc/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ func (c *Client) Ping(ctx context.Context) error {
return c.grpc.Ping(ctx)
}

func (c *Client) WaitServer(ctx context.Context) error {
return c.grpc.Ping(ctx, grpc.WaitForReady(true))
}

func (c *Client) GetLatestBlockHeader(ctx context.Context, isSealed bool) (*flow.BlockHeader, error) {
return c.grpc.GetLatestBlockHeader(ctx, isSealed)
}
Expand Down

0 comments on commit 6434b7e

Please sign in to comment.