This commit is contained in:
2026-02-12 11:47:58 +03:00
parent 3912beefac
commit 9ef9a240a4
4 changed files with 12 additions and 10 deletions

View File

@@ -23,7 +23,7 @@ type Api struct {
func NewAPI(token string) *Api {
l := slog.CreateLogger().Level(utils.GetLoggerLevel()).Prefix("API")
l.AddWriter(l.CreateJsonStdoutWriter())
client := &http.Client{Timeout: time.Second * 10}
client := &http.Client{Timeout: time.Second * 45}
return &Api{token, client, l}
}
func (api *Api) CloseApi() error {