mirror of
https://github.com/lordmathis/llamactl.git
synced 2025-11-06 00:54:23 +00:00
Remove remote instance proxy handling from handlers
This commit is contained in:
@@ -4,8 +4,6 @@ import (
|
||||
"llamactl/pkg/config"
|
||||
"llamactl/pkg/manager"
|
||||
"net/http"
|
||||
"net/http/httputil"
|
||||
"sync"
|
||||
"time"
|
||||
)
|
||||
|
||||
@@ -13,8 +11,6 @@ type Handler struct {
|
||||
InstanceManager manager.InstanceManager
|
||||
cfg config.AppConfig
|
||||
httpClient *http.Client
|
||||
remoteProxies map[string]*httputil.ReverseProxy // Cache of remote proxies by instance name
|
||||
remoteProxiesMu sync.RWMutex
|
||||
}
|
||||
|
||||
func NewHandler(im manager.InstanceManager, cfg config.AppConfig) *Handler {
|
||||
@@ -24,6 +20,5 @@ func NewHandler(im manager.InstanceManager, cfg config.AppConfig) *Handler {
|
||||
httpClient: &http.Client{
|
||||
Timeout: 30 * time.Second,
|
||||
},
|
||||
remoteProxies: make(map[string]*httputil.ReverseProxy),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user