Skip to content

Commit 30c9728

Browse files
committed
resolve import and linting
1 parent 5f37fee commit 30c9728

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

rollup/tests/integration_tool/imports.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ func importData(ctx context.Context, beginBlk, endBlk uint64, chkNum, batchNum,
4949
ret := &importRecord{}
5050
// Create a new random source with the provided seed
5151
source := rand.NewSource(seed)
52+
//nolint:all
5253
rng := rand.New(source)
5354

5455
chkSepIdx := randomPickKfromN(int(endBlk-beginBlk)+1, chkNum, rng)

rollup/tests/integration_tool/main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ func action(ctx *cli.Context) error {
164164
}
165165

166166
seed := ctx.Int64(seedFlag.Name)
167+
//nolint:all
167168
if seed == 0 {
168169
seed = rand.Int63()
169170
}
@@ -181,7 +182,7 @@ func action(ctx *cli.Context) error {
181182
}
182183

183184
// Write the JSON data to the specified file
184-
err = os.WriteFile(outputPath, jsonData, 0644)
185+
err = os.WriteFile(outputPath, jsonData, 0600)
185186
if err != nil {
186187
return fmt.Errorf("failed to write result to file %s: %w", outputPath, err)
187188
}

0 commit comments

Comments
 (0)