Skip to content

Commit

Permalink
#4222: removed clock from admin client
Browse files Browse the repository at this point in the history
  • Loading branch information
sreuland committed May 4, 2022
1 parent 0578799 commit 2b1e53b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion clients/horizonclient/admin_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func (c *AdminClient) sendHTTPRequest(req *http.Request, a interface{}) error {
if resp, err := c.http.Do(req.WithContext(ctx)); err != nil {
return err
} else {
return decodeResponse(resp, a, req.URL.String(), c.clock)
return decodeResponse(resp, a, req.URL.String(), nil)
}
}

Expand Down
3 changes: 0 additions & 3 deletions clients/horizonclient/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,6 @@ type AdminClient struct {

// max client wait time for response
horizonTimeout time.Duration

// clock is a Clock returning the current time.
clock *clock.Clock
}

// SubmitTxOpts represents the submit transaction options
Expand Down

0 comments on commit 2b1e53b

Please sign in to comment.