Skip to content

Commit

Permalink
Merge pull request #40 from pinax-network/fix/cursor_json_file_permis…
Browse files Browse the repository at this point in the history
…sions

fix cursor.json file permissions
  • Loading branch information
maoueh authored Mar 19, 2024
2 parents 1090f59 + 8fc96f6 commit 0ed9515
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blockpoller/state_file.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func (p *BlockPoller) saveState(blocks []*forkable.Block) error {
}
fpath := filepath.Join(p.stateStorePath, "cursor.json")

if err := os.WriteFile(fpath, cnt, os.ModePerm); err != nil {
if err := os.WriteFile(fpath, cnt, 0666); err != nil {
return fmt.Errorf("unable to open cursor file %s: %w", fpath, err)
}

Expand Down

0 comments on commit 0ed9515

Please sign in to comment.