Skip to content

Add server type to StartServer function as parameter - #21219

Merged
JinHai-CN merged 2 commits into
infiniflow:mainfrom
JinHai-CN:fix762
Oct 20, 2026
Merged

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

Conversation

@JinHai-CN

Copy link
Copy Markdown
Member

No description provided.

Signed-off-by: Jin Hai <[email protected]>
@JinHai-CN
JinHai-CN marked this pull request as ready for review October 20, 2026 06:55
@coderabbitai

coderabbitai Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 4ffd5803-3fe5-48d0-855f-be81e3f30926
📥 Commits

Reviewing files that changed from the base of the PR and between 8113fdb and 6b7bdb0.

📒 Files selected for processing: 2
  • cmd/ragflow_server.go
  • internal/server/server_ee.go

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

📝 Walkthrough

StartServer now accepts a cancellation function and a server type. The command startup call was updated to pass the cancellation function.

Changes: Server startup

Layer / File(s) Summary
Startup signature and wiring
internal/server/server_ee.go, cmd/ragflow_server.go
StartServer now accepts a common.ServerType parameter. The command call passes cancel. The existing nil-server validation and return behavior remain unchanged.

Priority: ⬇️ Low

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

Change: Feature

Suggested reviewers: xugangqiang

Merge Risk: ⚪ Minimal · up to 6b7bd

Startup wiring is consistent, and no actionable merge-blocking risk is established.

Pre-merge checks: Passed 3 · Failed 2

Failed Failed checks: 2 warnings

Check name Status Explanation Resolution
Description check Warning The pull request has no description. It does not include the required Summary section or background context. Add a Summary section that briefly explains the purpose of passing serverType to StartServer and provides relevant background for reviewers.
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 2 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 3 passed
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main change: adding server type as a StartServer parameter.
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.
  • Fix all pre-merge checks with AI
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

A rabbit checks the startup call,
With cancel ready, should shutdown fall.
A server type joins the function line,
The signatures now align in time.
Soft paws hop past the code review.

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

@JinHai-CN JinHai-CN added the ci Continue Integration label Oct 20, 2026
@JinHai-CN
JinHai-CN merged commit aad53ef into infiniflow:main Oct 20, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Continue Integration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant