- Refractor code

- Add a better logging for 429 when streaming
- Fix minor issues
This commit is contained in:
Mukhtar Akere
2025-04-01 06:37:10 +01:00
parent 8bf164451c
commit 7d954052ae
28 changed files with 214 additions and 179 deletions

View File

@@ -80,7 +80,7 @@ type Proxy struct {
}
func NewProxy() *Proxy {
cfg := config.GetConfig().Proxy
cfg := config.Get().Proxy
port := cmp.Or(os.Getenv("PORT"), cfg.Port, "8181")
return &Proxy{
port: port,
@@ -88,7 +88,7 @@ func NewProxy() *Proxy {
username: cfg.Username,
password: cfg.Password,
cachedOnly: cfg.CachedOnly,
logger: logger.NewLogger("proxy"),
logger: logger.New("proxy"),
}
}