context: cleaning up context dead ends (#7963)

This commit is contained in:
Sam Kleinman
2022-02-22 15:04:16 -05:00
committed by GitHub
parent 912751cf93
commit 2ffb262600
9 changed files with 15 additions and 17 deletions

View File

@@ -1,7 +1,6 @@
package commands
import (
"context"
"errors"
"fmt"
"net/http"
@@ -149,7 +148,7 @@ for applications built w/ Cosmos SDK).
// Initiate the light client. If the trusted store already has blocks in it, this
// will be used else we use the trusted options.
c, err := light.NewHTTPClient(
context.Background(),
cmd.Context(),
chainID,
light.TrustOptions{
Period: trustingPeriod,