Skip to content

Hold OutstationTask directly in ServerTask (#424)#426

Merged
jadamcrain merged 1 commit into
mainfrom
refactor/424-server-task-outstation
Jun 16, 2026
Merged

Hold OutstationTask directly in ServerTask (#424)#426
jadamcrain merged 1 commit into
mainfrom
refactor/424-server-task-outstation

Conversation

@jadamcrain

Copy link
Copy Markdown
Member

Closes #424.

ServerTask is outstation-only and only calls run(), process_next_message(),
and enabled() on its session — all exposed directly by OutstationTask. Hold
OutstationTask instead of the generic Session wrapper, dropping a Box + enum
dispatch on every call. Pure refactor, no behavior change.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors the outstation server task to use OutstationTask directly instead of wrapping it in a Session. Specifically, ServerTask now holds and operates on an OutstationTask directly, and the Session wrapper has been removed from server.rs and server_task.rs. There are no review comments, so I have no feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@jadamcrain jadamcrain merged commit 0ce2b71 into main Jun 16, 2026
31 checks passed
@jadamcrain jadamcrain deleted the refactor/424-server-task-outstation branch June 16, 2026 21:32
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.

Simplify outstation ServerTask to hold OutstationTask directly instead of the generic Session wrapper

1 participant