Skip to content

Commit

Permalink
ctx err
Browse files Browse the repository at this point in the history
  • Loading branch information
srene committed Oct 19, 2024
1 parent 258f4ee commit 50a85bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion block/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ func (m *Manager) SyncLoop(ctx context.Context) error {
for {
select {
case <-ctx.Done():
return nil
return ctx.Err()

case <-m.syncingC:

m.logger.Info("syncing to target height", "targetHeight", m.LastSubmittedHeight.Load())
Expand Down
2 changes: 1 addition & 1 deletion block/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func (m *Manager) ValidateLoop(ctx context.Context) error {
for {
select {
case <-ctx.Done():
return nil
return ctx.Err()
case <-m.validateC:

m.logger.Info("validating state updates to target height", "targetHeight", m.LastSubmittedHeight.Load())
Expand Down

0 comments on commit 50a85bd

Please sign in to comment.