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 and nalepae committed Oct 24, 2024
1 parent 1d9c41f commit 679737b
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 679737b

Please sign in to comment.