style(gateway): shorten shutdown runtime signature

This commit is contained in:
Sakurapainting 2026-04-02 09:24:02 +08:00
parent 55189c571b
commit 1ea072b483

View file

@ -240,7 +240,11 @@ func isLoopbackHost(host string) bool {
return ip != nil && ip.IsLoopback()
}
func shutdownChannelRuntime(runningServices *channelServices, agentLoop *agent.AgentLoop, provider providers.LLMProvider) {
func shutdownChannelRuntime(
runningServices *channelServices,
agentLoop *agent.AgentLoop,
provider providers.LLMProvider,
) {
if cp, ok := provider.(providers.StatefulProvider); ok {
cp.Close()
}