fix(api): sse events for queue and health - #418
Merged
Conversation
Analyze multiple RAR archive groups concurrently using goroutines, reducing import time for NZBs with multiple separate RAR sets (e.g. season packs). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…eams via net/http The previous fix added native net/http bypass handlers (ServeQueueSSE, ServeHealthSSE) that intercept /api/queue/stream and /api/health/stream before requests reach Fiber. This made the original Fiber-based handleQueueStream and handleHealthStream permanently unreachable dead code. - Delete handleHealthStream and handleQueueStream Fiber handlers - Remove now-unused imports: bufio, context, github.com/gofiber/fiber/v2 - Remove dead route registrations in SetupRoutes - Add setup.go bypass routes for queue/stream and health/stream - Replace dead route lines with explanatory comment in server.go Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
yoshitaka420
pushed a commit
to yoshitaka420/altmount
that referenced
this pull request
Jun 1, 2026
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
handleHealthStreamandhandleQueueStreamFiber handlers — permanently unreachable since nativenet/httpbypass handlers intercept these routes before Fiberbufio,context,github.com/gofiber/fiber/v2) fromprogress_handlers.goapi.Get("/queue/stream", ...)andapi.Get("/health/stream", ...)route registrations fromserver.gosetup.gobypass routes for/api/queue/streamand/api/health/streamviaServeQueueSSE/ServeHealthSSEsetup.goTest plan
go build ./...compiles cleanly with no unused import errorsgo vet ./internal/api/... ./cmd/...passes clean/api/queue/streamand/api/health/streamhold persistent SSE connections🤖 Generated with Claude Code