Skip to content

Commit

Permalink
return shares instead of nil on timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
nkryuchkov committed Oct 25, 2024
1 parent 585eae1 commit 56824f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion operator/metadata/updater.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ func (u *Updater) sendUpdate(ctx context.Context, updates chan<- Update) ([]*ssv
case <-ctx.Done():
return shares, ctx.Err()
case <-timer.C:
return nil, fmt.Errorf("timed out waiting for sending update")
return shares, fmt.Errorf("timed out waiting for sending update")
case updates <- update:
return shares, nil
}
Expand Down

0 comments on commit 56824f8

Please sign in to comment.