Skip to content

Commit

Permalink
comments fix
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky committed Oct 19, 2023
1 parent 7fb3870 commit 3ca251d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/node/rpc/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func (api *API) post(ctx context.Context, requests []types.Request, output any)

start := time.Now()

req, err := http.NewRequestWithContext(ctx, http.MethodPost, api.cfg.URL, body)
req, err := http.NewRequestWithContext(ctx, http.MethodPost, u.String(), body)
if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/node/rpc/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func (api *API) BlockData(ctx context.Context, level pkgTypes.Level) (pkgTypes.B
var blockData pkgTypes.BlockData

if err := api.post(ctx, requests, &responses); err != nil {
return blockData, errors.Wrap(err, "api.get")
return blockData, errors.Wrap(err, "api.post")
}

if block.Error != nil {
Expand Down

0 comments on commit 3ca251d

Please sign in to comment.