Skip to content

Commit

Permalink
update client
Browse files Browse the repository at this point in the history
  • Loading branch information
forcodedancing committed Nov 29, 2023
1 parent c289ef5 commit 505fbae
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion executor/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package executor
import (
"context"
"sync"
"time"

gnfdclient "github.com/bnb-chain/greenfield-go-sdk/client"
"github.com/bnb-chain/greenfield-go-sdk/types"
Expand Down Expand Up @@ -75,7 +76,9 @@ func (gc *GnfdCompositeClients) GetClient() *GnfdCompositeClient {

func getClientBlockHeight(clientChan chan *GnfdCompositeClient, wg *sync.WaitGroup, client *GnfdCompositeClient) {
defer wg.Done()
status, err := client.TmClient.Status(context.Background())
ctxWithTimeout, cancel := context.WithTimeout(context.Background(), time.Second)
defer cancel()
status, err := client.GetStatus(ctxWithTimeout)
if err != nil {
return
}
Expand Down

0 comments on commit 505fbae

Please sign in to comment.