Skip to content

Commit

Permalink
remove influx dependency from some scrapers.
Browse files Browse the repository at this point in the history
  • Loading branch information
jppade committed Jul 24, 2023
1 parent 9873d08 commit 4350e3c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion pkg/dia/scraper/exchange-scrapers/CurvefiScraper.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ type CurveFIScraper struct {
WsClient *ethclient.Client
RestClient *ethclient.Client
relDB *models.RelDB
datastore *models.DB
curveCoins map[string]*CurveCoin
resubscribe chan string
pools *Pools
Expand Down
6 changes: 0 additions & 6 deletions pkg/dia/scraper/exchange-scrapers/UniswapV2Scraper.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ type UniswapScraper struct {
WsClient *ethclient.Client
RestClient *ethclient.Client
relDB *models.RelDB
datastore *models.DB
// signaling channels for session initialization and finishing
//initDone chan nothing
run bool
Expand Down Expand Up @@ -228,11 +227,6 @@ func NewUniswapScraper(exchange dia.Exchange, scrape bool, relDB *models.RelDB)

s.relDB = relDB

s.datastore, err = models.NewDataStore()
if err != nil {
log.Fatal("new datastore: ", err)
}

// Only include pools with (minimum) liquidity bigger than given env var.
liquidityThreshold, err := strconv.ParseFloat(utils.Getenv("LIQUIDITY_THRESHOLD", "0"), 64)
if err != nil {
Expand Down

0 comments on commit 4350e3c

Please sign in to comment.