Skip to content

Commit

Permalink
fix: set config from input when invokded by external
Browse files Browse the repository at this point in the history
  • Loading branch information
leonz789 committed Sep 6, 2024
1 parent 66ea003 commit 11a3f29
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/feeder_tool.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func RunPriceFeeder(conf feedertypes.Config, mnemonic string, sourcesPath string
fInfo.updateCh = trigger
runningFeeders[int64(feederID)] = fInfo
// start a routine to update price for this feeder
go feedToken(fInfo, cc, f)
go feedToken(fInfo, cc, f, conf)
break
}
}
Expand Down Expand Up @@ -151,7 +151,7 @@ func reloadConfigToFetchNewTokens(remainningFeeders map[string]*feederInfo, newF
f.AddTokenForSource(conf.Sources[0], token)
// start a routine to update price for this feeder
newFeeder <- fInfo
go feedToken(fInfo, cc, f)
go feedToken(fInfo, cc, f, conf)
break
}
}
Expand Down Expand Up @@ -191,7 +191,7 @@ func updateCurrentFeedingTokens(oracleP oracleTypes.Params, currentFeedingTokens
return remain
}

func feedToken(fInfo *feederInfo, cc *grpc.ClientConn, f *fetcher.Fetcher) {
func feedToken(fInfo *feederInfo, cc *grpc.ClientConn, f *fetcher.Fetcher, conf feedertypes.Config) {
pChan := make(chan *types.PriceInfo)
prevPrice := ""
prevDecimal := -1
Expand Down

0 comments on commit 11a3f29

Please sign in to comment.