Skip to content

Commit

Permalink
fix: Remove check for already existing db (#266)
Browse files Browse the repository at this point in the history
* Remove check for already existing db

* Update lint action version
  • Loading branch information
Wolmin authored Nov 25, 2024
1 parent f4547e8 commit dedd012
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: 🔍 Golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.56.1
version: v1.62.0
args: --config=.golangci.yml

- name: 🎯 Test
Expand Down
10 changes: 2 additions & 8 deletions dependencies/clients/shared.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,12 +133,12 @@ func (client *clientBinary) Start(ctx *cli.Context, arguments []string) (err err
return
}

err = os.WriteFile(fullPath, []byte{}, 0750)
err = os.WriteFile(fullPath, []byte{}, 0o750)
if err != nil {
return
}

logFile, err = os.OpenFile(fullPath, os.O_RDWR, 0750)
logFile, err = os.OpenFile(fullPath, os.O_RDWR, 0o750)
if err != nil {
return
}
Expand Down Expand Up @@ -341,12 +341,6 @@ func (client *clientBinary) IsRunning() bool {
}

func initClient(ctx *cli.Context, client ClientBinaryDependency) (err error) {
if utils.FileExists(ctx.String(flags.GethDatadirFlag)) { // geth datadir is the same as erigon - no matter which client we use
log.Info("⚙️ Execution database already exists - continuing...")

return
}

log.Infof("⚙️ Running %s init...", client.Name())

if client.IsRunning() {
Expand Down

0 comments on commit dedd012

Please sign in to comment.