Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions ethrpc/ethrpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ type Provider struct {
httpClientMu sync.RWMutex

br breaker.Breaker
jwtToken string // optional
streamClosers []StreamCloser
streamUnsubscribers []StreamUnsubscriber
strictness StrictnessLevel
Expand Down Expand Up @@ -174,10 +173,6 @@ func (p *Provider) Do(ctx context.Context, calls ...Call) ([]byte, error) {
req = req.WithContext(ctx)
req.Header.Set("Content-Type", "application/json")

if p.jwtToken != "" {
req.Header.Set("Authorization", fmt.Sprintf("BEARER %s", p.jwtToken))
}

httpClient := p.getHTTPClient()
res, err := httpClient.Do(req)
if err != nil {
Expand Down
Loading