Skip to content

Commit

Permalink
ARCO-209: fix linter errors after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
pawellewandowski98 authored and boecklim committed Oct 30, 2024
1 parent 58599c0 commit e19d657
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,8 @@ linters-settings:
disabled: true
- name: comment-spacings # disable for staticcheck ignore comments
disabled: true
- name: argument-limit
disabled: true


rowserrcheck:
Expand Down
2 changes: 1 addition & 1 deletion cmd/arc/services/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func StartAPIServer(logger *slog.Logger, arcConfig *config.ArcConfig) (func(), e

// TODO: WithSecurityConfig(appConfig.Security)
apiOpts := []handler.Option{
handler.WithCallbackUrlRestrictions(arcConfig.Metamorph.RejectCallbackContaining),
handler.WithCallbackURLRestrictions(arcConfig.Metamorph.RejectCallbackContaining),
}

shutdownFns := make([]func(), 0)
Expand Down
1 change: 1 addition & 0 deletions cmd/arc/services/blocktx.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"github.com/bitcoin-sv/arc/internal/grpc_opts"
"github.com/bitcoin-sv/arc/internal/message_queue/nats/client/nats_core"
"github.com/bitcoin-sv/arc/internal/message_queue/nats/client/nats_jetstream"
"github.com/bitcoin-sv/arc/internal/message_queue/nats/nats_connection"
"github.com/bitcoin-sv/arc/internal/tracing"

"github.com/bitcoin-sv/arc/config"
Expand Down
3 changes: 1 addition & 2 deletions pkg/api/handler/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,7 @@ func (m ArcDefaultHandler) POSTTransaction(ctx echo.Context, params api.POSTTran
reqCtx, span := m.startTracing(reqCtx, "POSTTransaction")
defer m.endTracing(span)

transactionOptions, err := getTransactionOptions(params, m.rejectedCallbackUrlSubstrings)

transactionOptions, err := getTransactionOptions(params, m.rejectedCallbackURLSubstrings)
if err != nil {
e := api.NewErrorFields(api.ErrStatusBadRequest, err.Error())
return ctx.JSON(e.Status, e)
Expand Down

0 comments on commit e19d657

Please sign in to comment.