Skip to content

Commit

Permalink
post merge fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mh0lt committed Oct 17, 2024
1 parent 7db113a commit 9410aa7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion polygon/heimdall/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ type service struct {
spanBlockProducersTracker *spanBlockProducersTracker
}

func AssembleService(config ServiceConfig) Service {
client := NewHeimdallClient(config.HeimdallURL, config.Logger)
return NewService(config.BorConfig, client, config.Store, config.Logger)
}

func NewService(borConfig *borcfg.BorConfig, client HeimdallClient, store Store, logger log.Logger) Service {
return newService(borConfig, client, store, logger)
}
Expand Down Expand Up @@ -107,7 +112,7 @@ func newService(borConfig *borcfg.BorConfig, client HeimdallClient, store Store,
return &service{
logger: logger,
store: store,
reader: NewReader(calculateSprintNumberFn, store, logger),
reader: NewReader(borConfig, store, logger),
checkpointScraper: checkpointScraper,
milestoneScraper: milestoneScraper,
spanScraper: spanScraper,
Expand Down

0 comments on commit 9410aa7

Please sign in to comment.