Skip to content

Commit

Permalink
Put Subscriber in Goroutine (#14486)
Browse files Browse the repository at this point in the history
  • Loading branch information
nisdas authored Sep 27, 2024
1 parent df42f37 commit c1b66fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions beacon-chain/sync/subscriber.go
Original file line number Diff line number Diff line change
Expand Up @@ -698,10 +698,10 @@ func (s *Service) subscribeDynamicWithSyncSubnets(
// Retrieve the current slot.
currentSlot := s.cfg.clock.CurrentSlot()

// Subscribe to the sync subnets.
s.subscribeToSyncSubnets(topicFormat, digest, genesisValidatorsRoot, genesisTime, subscriptions, currentSlot, validate, handle)

go func() {
// Subscribe to the sync subnets.
s.subscribeToSyncSubnets(topicFormat, digest, genesisValidatorsRoot, genesisTime, subscriptions, currentSlot, validate, handle)

for {
select {
case currentSlot := <-ticker.C():
Expand Down

0 comments on commit c1b66fe

Please sign in to comment.