Skip to content

Refactor restorer.restore to extract post-restore work#13106

Merged
copybara-service[bot] merged 1 commit intomasterfrom
test/cl911600246
May 7, 2026
Merged

Refactor restorer.restore to extract post-restore work#13106
copybara-service[bot] merged 1 commit intomasterfrom
test/cl911600246

Conversation

@copybara-service
Copy link
Copy Markdown

Refactor restorer.restore to extract post-restore work

  • Extracted the inline goroutine function from the restore method into a
    new method restorer.postRestore.
  • Passed *timing.Timer to postRestore and moved timer.Log() to the end
    of postRestore to ensure asynchronous logging after all background work
    (including page loading) completes, avoiding spawning an extra goroutine.

@copybara-service copybara-service Bot added the exported Issue was exported automatically label May 6, 2026
- Extracted the inline goroutine function from the `restore` method into a
  new method `restorer.postRestore`.
- Passed `*timing.Timer` to `postRestore` and moved `timer.Log()` to the end
  of `postRestore` to ensure asynchronous logging after all background work
  (including page loading) completes, avoiding spawning an extra goroutine.

PiperOrigin-RevId: 911655209
@copybara-service copybara-service Bot merged commit 7b19947 into master May 7, 2026
0 of 2 checks passed
@copybara-service copybara-service Bot deleted the test/cl911600246 branch May 7, 2026 01:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

exported Issue was exported automatically

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant