Skip to content

Commit

Permalink
Fix linter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
muXxer committed Aug 30, 2023
1 parent c29eb6c commit 4a3eb37
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 18 deletions.
1 change: 1 addition & 0 deletions pkg/model/storage/unreferenced_blocks_storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ func (s *Storage) UnreferencedBlockIDs(msIndex iotago.MilestoneIndex, iteratorOp

s.unreferencedBlocksStorage.ForEachKeyOnly(func(key []byte) bool {
blockID := iotago.BlockID{}
//nolint:gosec
copy(blockID[:], key[4:36])
unreferencedBlockIDs = append(unreferencedBlockIDs, blockID)

Expand Down
1 change: 1 addition & 0 deletions pkg/p2p/identity.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"fmt"

"github.com/libp2p/go-libp2p/core/peerstore"
//nolint:staticcheck // we want to keep the peerstore for now
"github.com/libp2p/go-libp2p/p2p/host/peerstore/pstoreds"

kvstoreds "github.com/iotaledger/go-ds-kvstore"
Expand Down
37 changes: 19 additions & 18 deletions pkg/toolset/toolset.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,24 +67,25 @@ const (
)

const (
ToolPwdHash = "pwd-hash"
ToolP2PIdentityGen = "p2pidentity-gen"
ToolP2PExtractIdentity = "p2pidentity-extract"
ToolEd25519Key = "ed25519-key"
ToolEd25519Addr = "ed25519-addr"
ToolJWTApi = "jwt-api"
ToolSnapGen = "snap-gen"
ToolSnapMerge = "snap-merge"
ToolSnapInfo = "snap-info"
ToolSnapHash = "snap-hash"
ToolBenchmarkIO = "bench-io"
ToolBenchmarkCPU = "bench-cpu"
ToolDatabaseLedgerHash = "db-hash"
ToolDatabaseHealth = "db-health"
ToolDatabaseMerge = "db-merge"
ToolDatabaseMigration = "db-migration"
ToolDatabaseSnapshot = "db-snapshot"
ToolDatabaseVerify = "db-verify"
ToolPwdHash = "pwd-hash"
ToolP2PIdentityGen = "p2pidentity-gen"
ToolP2PExtractIdentity = "p2pidentity-extract"
ToolEd25519Key = "ed25519-key"
ToolEd25519Addr = "ed25519-addr"
ToolJWTApi = "jwt-api"
ToolSnapGen = "snap-gen"
ToolSnapMerge = "snap-merge"
ToolSnapInfo = "snap-info"
ToolSnapHash = "snap-hash"
ToolBenchmarkIO = "bench-io"
ToolBenchmarkCPU = "bench-cpu"
ToolDatabaseLedgerHash = "db-hash"
ToolDatabaseHealth = "db-health"
ToolDatabaseMerge = "db-merge"
ToolDatabaseMigration = "db-migration"
ToolDatabaseSnapshot = "db-snapshot"
ToolDatabaseVerify = "db-verify"
//nolint:gosec
ToolBootstrapPrivateTangle = "bootstrap-private-tangle"
ToolNodeInfo = "node-info"
)
Expand Down

0 comments on commit 4a3eb37

Please sign in to comment.