Skip to content

Commit

Permalink
Fix load config file paths
Browse files Browse the repository at this point in the history
  • Loading branch information
hawyar committed Jun 26, 2023
1 parent 19cba3e commit d1d42de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion services/crawler/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func main() {
}

func LoadEnv() error {
err := godotenv.Load()
err := godotenv.Load("services/crawler/.env")
if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion services/crawler/crawler.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ func (c *EtheruemCrawler) Introspect() (map[string]Table, error) {
}

func ResourceVersion() (int, error) {
f, err := os.ReadFile("../../common/data/package.json")
f, err := os.ReadFile("common/data/package.json")

if err != nil {
return 0, err
Expand Down

0 comments on commit d1d42de

Please sign in to comment.