Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
golangisfun123 committed Oct 14, 2024
1 parent 275dfaa commit fc96c21
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions services/omnirpc/http/capture_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ func (c *CapturedRequest) Do() (Response, error) {
return resp, err
}

// WithMetrics sets the metrics handler.
func (c *CapturedRequest) WithMetrics(metrics metrics.Handler) Request {
c.Handler = metrics
return c
Expand Down
3 changes: 2 additions & 1 deletion services/omnirpc/http/resty.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package http

import (
"context"
"fmt"

"github.com/ethereum/go-ethereum/common"
"github.com/go-resty/resty/v2"
Expand Down Expand Up @@ -114,7 +115,7 @@ func (r *restyRequest) Do() (_ Response, err error) {
}()
resp, err := r.Request.Post(r.endpoint)
if err != nil {
return nil, err
return nil, fmt.Errorf("could not get response from %s: %w", r.endpoint, err)
}
return resp, nil
}
Expand Down

0 comments on commit fc96c21

Please sign in to comment.