File tree Expand file tree Collapse file tree 4 files changed +13
-8
lines changed Expand file tree Collapse file tree 4 files changed +13
-8
lines changed Original file line number Diff line number Diff line change 4
4
max-issues-per-linter : 0
5
5
max-same-issues : 0
6
6
linters :
7
+ disable :
8
+ - depguard
7
9
enable :
8
10
- errcheck
9
11
- gosimple
@@ -12,9 +14,15 @@ linters:
12
14
- staticcheck
13
15
- unused
14
16
# Defaults above ours below
17
+ - copyloopvar
18
+ - usestdlibvars
19
+ - whitespace
15
20
presets :
16
21
- bugs
22
+ - format
23
+ - import
17
24
- performance
25
+ - unused
18
26
# linters-settings:
19
27
# errcheck:
20
28
# check-type-assertions: true
Original file line number Diff line number Diff line change @@ -19,11 +19,10 @@ import (
19
19
"fmt"
20
20
"os"
21
21
22
- "go.uber.org/automaxprocs/maxprocs"
23
-
24
22
"github.com/blinklabs-io/tx-submit-api-mirror/internal/api"
25
23
"github.com/blinklabs-io/tx-submit-api-mirror/internal/config"
26
24
"github.com/blinklabs-io/tx-submit-api-mirror/internal/logging"
25
+ "go.uber.org/automaxprocs/maxprocs"
27
26
)
28
27
29
28
var cmdlineFlags struct {
Original file line number Diff line number Diff line change @@ -28,14 +28,13 @@ import (
28
28
29
29
models "github.com/blinklabs-io/cardano-models"
30
30
"github.com/blinklabs-io/gouroboros/ledger"
31
+ "github.com/blinklabs-io/tx-submit-api-mirror/internal/config"
32
+ "github.com/blinklabs-io/tx-submit-api-mirror/internal/logging"
31
33
"github.com/fxamacker/cbor/v2"
32
34
cors "github.com/gin-contrib/cors"
33
35
ginzap "github.com/gin-contrib/zap"
34
36
"github.com/gin-gonic/gin"
35
37
maestro "github.com/maestro-org/go-sdk/client"
36
-
37
- "github.com/blinklabs-io/tx-submit-api-mirror/internal/config"
38
- "github.com/blinklabs-io/tx-submit-api-mirror/internal/logging"
39
38
)
40
39
41
40
func Start (cfg * config.Config ) error {
@@ -186,7 +185,7 @@ func handleSubmitTx(c *gin.Context) {
186
185
return
187
186
}
188
187
defer resp .Body .Close ()
189
- if resp .StatusCode == 202 {
188
+ if resp .StatusCode == http . StatusAccepted {
190
189
logger .Infow (
191
190
fmt .Sprintf (
192
191
"successfully submitted transaction %s to backend %s" ,
Original file line number Diff line number Diff line change @@ -18,10 +18,9 @@ import (
18
18
"log"
19
19
"time"
20
20
21
+ "github.com/blinklabs-io/tx-submit-api-mirror/internal/config"
21
22
"go.uber.org/zap"
22
23
"go.uber.org/zap/zapcore"
23
-
24
- "github.com/blinklabs-io/tx-submit-api-mirror/internal/config"
25
24
)
26
25
27
26
type Logger = zap.SugaredLogger
You can’t perform that action at this time.
0 commit comments