style(gateway): shorten shutdown runtime signature
This commit is contained in:
parent
55189c571b
commit
1ea072b483
1 changed files with 5 additions and 1 deletions
|
|
@ -240,7 +240,11 @@ func isLoopbackHost(host string) bool {
|
||||||
return ip != nil && ip.IsLoopback()
|
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 {
|
if cp, ok := provider.(providers.StatefulProvider); ok {
|
||||||
cp.Close()
|
cp.Close()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue