Skip to content

Commit e07b7d9

Browse files
committed
fix lint
1 parent 64f22c9 commit e07b7d9

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

beacon/blockchain/blob_fetcher.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func NewBlobFetcher(
7575

7676
// Create queue directory
7777
queueDir := filepath.Join(dataDir, "blob_fetcher_queue")
78-
if err := os.MkdirAll(queueDir, 0755); err != nil {
78+
if err := os.MkdirAll(queueDir, 0700); err != nil {
7979
cancel()
8080
return nil, fmt.Errorf("failed to create blob fetcher queue directory: %w", err)
8181
}
@@ -227,7 +227,7 @@ func (bf *blobFetcher) getNextRequest() (BlobFetchRequest, func(), error) {
227227
}
228228
}
229229

230-
data, err := os.ReadFile(filename)
230+
data, err := os.ReadFile(filename) // #nosec G304 // filename is constructed from queueDir
231231
if err != nil {
232232
return request, cleanup, fmt.Errorf("failed to read request file: %w", err)
233233
}

testing/simulated/components.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ func FixedComponents(t *testing.T) []any {
4040
components.ProvideBlsSigner,
4141
components.ProvideBlobProcessor,
4242
components.ProvideBlobProofVerifier,
43+
components.ProvideBlobReactor,
4344
components.ProvideBlobFetcher,
4445
components.ProvideChainService,
4546
components.ProvideNode,

0 commit comments

Comments
 (0)