Skip to content

Commit

Permalink
chore: Add mockable http client to simple client - address PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
epociask committed Dec 4, 2024
1 parent c4eddf6 commit a2e80ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/simple.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func (c *SimpleCommitmentClient) GetData(ctx context.Context, comm []byte) ([]by
}

if resp.StatusCode != http.StatusOK {
return nil, fmt.Errorf("received error response when reading from eigenda, code=%d, msg = %s", resp.StatusCode, string(b))
return nil, fmt.Errorf("received error response when reading from eigenda-proxy, code=%d, msg = %s", resp.StatusCode, string(b))
}

return b, nil
Expand Down Expand Up @@ -131,7 +131,7 @@ func (c *SimpleCommitmentClient) SetData(ctx context.Context, b []byte) ([]byte,
}

if resp.StatusCode != http.StatusOK {
return nil, fmt.Errorf("received error response when dispersing to eigenda, code=%d, err = %s", resp.StatusCode, string(b))
return nil, fmt.Errorf("received error response when dispersing to eigenda-proxy, code=%d, err = %s", resp.StatusCode, string(b))
}

if len(b) == 0 {
Expand Down

0 comments on commit a2e80ee

Please sign in to comment.