Add solution for Challenge 8 by imankhodadi - #1843
Conversation
WalkthroughAdds a new ChangesChallenge 8: Concurrent Go Chat Server
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches⚔️ Resolve merge conflicts
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 golangci-lint (2.12.2)level=error msg="[linters_context] typechecking error: pattern ./...: directory prefix . does not contain main module or its selected dependencies" Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
challenge-8/submissions/imankhodadi/solution-template.go (1)
33-37: 🩺 Stability & Availability | 🔵 Trivial | 💤 Low valueNon-blocking send silently drops messages when the buffer is full.
The
defaultbranch discards the message ifMessages(cap 100) is full, e.g. for a slow/non-consuming receiver. This is a reasonable choice to avoid blocking the broadcast path, but a slow client will silently miss messages. If acceptable for this challenge, no change is needed; otherwise consider surfacing or counting drops.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 9ba81482-0e92-4c25-83f9-f89cccaad81f
📒 Files selected for processing (1)
challenge-8/submissions/imankhodadi/solution-template.go
Challenge 8 Solution
Submitted by: @imankhodadi
Challenge: Challenge 8
Description
This PR contains my solution for Challenge 8.
Changes
challenge-8/submissions/imankhodadi/solution-template.goTesting
Thank you for reviewing my submission! 🚀