Skip to content

Commit

Permalink
Use glif API key from config
Browse files Browse the repository at this point in the history
Signed-off-by: avichalp <[email protected]>
  • Loading branch information
avichalp committed May 31, 2023
1 parent 062c77d commit dede88b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions cmd/healthbot/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ type ChainConfig struct {
WalletPrivateKey string
AlchemyAPIKey string
AnkrAPIKey string
GlifAPIKey string
Probe struct {
CheckInterval string `default:"15s"`
ReceiptTimeout string `default:"20s"`
Expand Down
2 changes: 1 addition & 1 deletion cmd/healthbot/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func main() {
opts := []clientV1.NewClientOption{clientV1.NewClientChain(chain)}
if chain.ID == 314159 {
// Glif API key is empty string because currently we are using the free tier (public node)
opts = append(opts, clientV1.NewClientGlifAPIKey(""))
opts = append(opts, clientV1.NewClientGlifAPIKey(chainCfg.GlifAPIKey))
} else {
opts = append(opts, clientV1.NewClientAlchemyAPIKey(chainCfg.AlchemyAPIKey))
}
Expand Down

0 comments on commit dede88b

Please sign in to comment.