Skip to content

Commit

Permalink
Removed unnecessary epoch from services config
Browse files Browse the repository at this point in the history
  • Loading branch information
mboben committed Sep 27, 2023
1 parent 3cb3432 commit 656ba4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion services/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ type Config struct {
Logger config.LoggerConfig `toml:"logger"`
Chain config.ChainConfig `toml:"chain"`
Services ServicesConfig `toml:"services"`
Epochs config.EpochConfig `toml:"epochs"`
ContractAddresses config.ContractAddresses `toml:"contract_addresses"`
}

Expand Down
3 changes: 2 additions & 1 deletion services/routes/mirroring.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package routes

import (
"errors"
globalConfig "flare-indexer/config"
"flare-indexer/database"
"flare-indexer/services/config"
"flare-indexer/services/context"
Expand Down Expand Up @@ -60,7 +61,7 @@ func newMirroringRouteHandlers(ctx context.ServicesContext) (*mirroringRouteHand

return &mirroringRouteHandlers{
db: NewMirrorDBGorm(ctx.DB()),
epochs: staking.NewEpochInfo(&cfg.Epochs, start, period),
epochs: staking.NewEpochInfo(&globalConfig.EpochConfig{}, start, period),
}, nil
}

Expand Down

0 comments on commit 656ba4c

Please sign in to comment.