rpc/client: take context as first param (#5347)

Closes #5145

also applies to light/client
This commit is contained in:
Anton Kaliaev
2020-09-23 09:21:57 +04:00
committed by GitHub
parent 0aecda68fc
commit 85a4be87a7
41 changed files with 706 additions and 503 deletions

View File

@@ -1,6 +1,7 @@
package light
import (
"context"
"time"
"github.com/tendermint/tendermint/light/provider"
@@ -15,6 +16,7 @@ import (
// See all Option(s) for the additional configuration.
// See NewClient.
func NewHTTPClient(
ctx context.Context,
chainID string,
trustOptions TrustOptions,
primaryAddress string,
@@ -28,6 +30,7 @@ func NewHTTPClient(
}
return NewClient(
ctx,
chainID,
trustOptions,
providers[len(providers)-1],