Skip to content

Commit

Permalink
Fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
kirugan authored and AnkushinDaniil committed Nov 7, 2024
1 parent 96f13ef commit da2ead3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion adapters/core2p2p/receipt_pkg_test.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package core2p2p

import (
"testing"

"github.com/NethermindEth/juno/core"
"github.com/stretchr/testify/assert"
"testing"
)

func TestReceiptCommon(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion adapters/p2p2core/receipt_test.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package p2p2core_test

import (
"testing"

"github.com/NethermindEth/juno/adapters/p2p2core"
"github.com/NethermindEth/juno/p2p/starknet/spec"
"github.com/NethermindEth/juno/utils"
"github.com/stretchr/testify/assert"
"testing"
)

func TestAdaptReceipt(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion core/version.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package core

import (
"github.com/Masterminds/semver/v3"
"strings"

"github.com/Masterminds/semver/v3"
)

var Ver0_13_2 = semver.MustParse("0.13.2")
Expand Down
3 changes: 1 addition & 2 deletions migration/migration.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func calculateP2PHash(txn db.Transaction, _ *utils.Network) error {
blockNumber uint64
p2pHash *felt.Felt
}
results := make(chan result, 1000)
results := make(chan result, 1000) //nolint:mnd

var wg sync.WaitGroup
ctx, cancel := context.WithCancel(context.Background())
Expand Down Expand Up @@ -132,7 +132,6 @@ func calculateP2PHash(txn db.Transaction, _ *utils.Network) error {
case <-ctx.Done():
return nil
}

}
})
}
Expand Down

0 comments on commit da2ead3

Please sign in to comment.