Skip to content

Commit

Permalink
default to http.DefaultClient
Browse files Browse the repository at this point in the history
  • Loading branch information
David Case committed Nov 27, 2024
1 parent a7e55b8 commit 3ddd892
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions transaction/broadcaster/arc.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ func (a *Arc) Broadcast(t *transaction.Transaction) (*transaction.BroadcastSucce
req.Header.Set("X-WaitFor", string(a.WaitFor))
}

if a.Client == nil {
a.Client = http.DefaultClient
}
resp, err := a.Client.Do(req)
if err != nil {
return nil, &transaction.BroadcastFailure{
Expand Down

0 comments on commit 3ddd892

Please sign in to comment.