Revert "Rename NewService to New (#8337)" (#8440)

* Revert "Rename `NewService` to `New` (#8337)"

This reverts commit d121b19145.

# Conflicts:
#	beacon-chain/sync/initial-sync/round_robin_test.go

* fix name in test

Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
This commit is contained in:
Radosław Kapka
2021-02-12 18:45:22 +01:00
committed by GitHub
parent 143d3a3203
commit 47fdb3b99a
46 changed files with 185 additions and 185 deletions

View File

@@ -56,9 +56,9 @@ type Service struct {
genesisChan chan time.Time
}
// New configures the initial sync service responsible for bringing the node up to the
// NewService configures the initial sync service responsible for bringing the node up to the
// latest head of the blockchain.
func New(ctx context.Context, cfg *Config) *Service {
func NewService(ctx context.Context, cfg *Config) *Service {
ctx, cancel := context.WithCancel(ctx)
s := &Service{
ctx: ctx,