Skip to content

Simplify WaitGroup usage in SRS client with wg.Go() - #717

Merged
dharmab merged 1 commit into
mainfrom
simplify-waitgroup-go
Jul 26, 2026
Merged

Simplify WaitGroup usage in SRS client with wg.Go()#717
dharmab merged 1 commit into
mainfrom
simplify-waitgroup-go

Conversation

@dharmab

@dharmab dharmab commented Jul 26, 2026

Copy link
Copy Markdown
Owner

Summary

  • Replaces the last remaining wg.Add() + go func() { defer wg.Done(); ... }() blocks in Client.Run (pkg/simpleradio/client.go) with wg.Go(func() { ... })
  • Matches the style already used earlier in the same method and throughout the rest of the codebase (this was the only remaining site using the old pattern)
  • No behavior change — pure simplification enabled by Go 1.24+'s WaitGroup.Go

Test plan

  • make lint && make vet && make fix && make format && go mod tidy — clean, no diff
  • make test — 1143 tests pass

🤖 Generated with Claude Code

@dharmab
dharmab enabled auto-merge (squash) July 26, 2026 15:06
Replaces the last remaining wg.Add()/go func()/defer wg.Done() blocks
in Client.Run with wg.Go(), matching the style already used elsewhere
in the same method and across the rest of the codebase.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@dharmab
dharmab force-pushed the simplify-waitgroup-go branch from a3aed0d to 23ed15b Compare July 26, 2026 16:33
@dharmab
dharmab merged commit 71c4a8a into main Jul 26, 2026
9 checks passed
@dharmab
dharmab deleted the simplify-waitgroup-go branch July 26, 2026 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant