Skip to content

Commit

Permalink
move configs to upper level package
Browse files Browse the repository at this point in the history
  • Loading branch information
amintalebi committed Aug 27, 2024
1 parent 537ffa2 commit 78189cc
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Edit `configs/local/config.yaml` and set the necessary values.

### Run Locally:
```
go run main.go server --config=configs/local/config.yaml
go run main.go run --config=configs/local/config.yaml
```

## Contributing
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions internal/cmd/run/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ import (
"github.com/shopspring/decimal"
"github.com/spf13/cobra"

block_ptr "github.com/zarbanio/market-maker-keeper/internal/block-ptr"
"github.com/zarbanio/market-maker-keeper/configs"
blockptr "github.com/zarbanio/market-maker-keeper/internal/block-ptr"
"github.com/zarbanio/market-maker-keeper/internal/chain"
"github.com/zarbanio/market-maker-keeper/internal/configs"
"github.com/zarbanio/market-maker-keeper/internal/dextrader"
"github.com/zarbanio/market-maker-keeper/internal/domain"
"github.com/zarbanio/market-maker-keeper/internal/domain/pair"
Expand All @@ -42,7 +42,7 @@ func main(cfg configs.Config) {
log.Panic(err)
}

blockPtr := block_ptr.NewDBBlockPointer(postgresStore, cfg.Indexer.StartBlock)
blockPtr := blockptr.NewDBBlockPointer(postgresStore, cfg.Indexer.StartBlock)
if !blockPtr.Exists() {
logger.Logger.Debug().Msg("block pointer doest not exits. creating a new one")
err := blockPtr.Create()
Expand Down

0 comments on commit 78189cc

Please sign in to comment.