Skip to content

Go: set gin mode in admin server - #16801

Merged
JinHai-CN merged 2 commits into
infiniflow:mainfrom
JinHai-CN:fix531
Jul 10, 2026
Merged

JinHai-CN merged 2 commits into
infiniflow:mainfrom
JinHai-CN:fix531

Conversation

@JinHai-CN

Copy link
Copy Markdown
Member

Summary

As title.

@JinHai-CN JinHai-CN added the ci Continue Integration label Jul 10, 2026
@JinHai-CN
JinHai-CN marked this pull request as ready for review July 10, 2026 04:08
@coderabbitai

coderabbitai Bot commented Jul 10, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

main updates startup failure messages, while runAdmin configures Gin’s mode from server settings and removes explicit admin router setup before HTTP server startup.

Changes

Admin server startup

Layer / File(s) Summary
Update startup failure messages
cmd/ragflow_server.go
Failure output for admin, ingestor, and syncer uses capitalized mode labels.
Configure admin server startup
cmd/ragflow_server.go
runAdmin selects Gin release or debug mode from configuration and no longer calls r.Setup(ginEngine) before starting the server.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

Poem

A rabbit tunes Gin tonight,
Release mode soft, debug bright.
Startup messages hop along,
Routes wait where they belong.
Thump, thump—everything’s right!

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Description check ⚠️ Warning The description is too brief and lacks the required summary and background context from the template. Replace "As title." with a brief summary of what changed, why it was needed, and any relevant background or impact.
✅ Passed checks (3 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly matches the main change: setting Gin mode in the admin server.

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@dosubot dosubot Bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Jul 10, 2026
@JinHai-CN
JinHai-CN marked this pull request as draft July 10, 2026 04:10
@JinHai-CN
JinHai-CN marked this pull request as ready for review July 10, 2026 04:10
Signed-off-by: Jin Hai <[email protected]>
@JinHai-CN
JinHai-CN merged commit 15d1ee7 into infiniflow:main Jul 10, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Continue Integration size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant