Skip to content

Commit acf3d0a

Browse files
committed
typo
1 parent 79204ae commit acf3d0a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

block/internal/syncing/syncer.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ func (s *Syncer) Start(ctx context.Context) error {
135135
}
136136

137137
// Start main processing loop
138-
s.wg.Add(1)
139138
go s.processLoop()
140139

141140
// Start dedicated workers for DA, and pending processing
@@ -227,6 +226,7 @@ func (s *Syncer) initializeState() error {
227226

228227
// processLoop is the main coordination loop for processing events
229228
func (s *Syncer) processLoop() {
229+
s.wg.Add(1)
230230
defer s.wg.Done()
231231

232232
s.logger.Info().Msg("starting process loop")
@@ -530,7 +530,7 @@ func (s *Syncer) trySyncNextBlock(event *common.DAHeightEvent) error {
530530
}
531531

532532
// Update DA height if needed
533-
// This height is only updated when an height is process from DA as P2P
533+
// This height is only updated when a height is processed from DA as P2P
534534
// events do not contain DA height information
535535
if event.DaHeight > newState.DAHeight {
536536
newState.DAHeight = event.DaHeight

0 commit comments

Comments
 (0)