Added prepull.

This commit is contained in:
rony5394
2026-04-27 15:16:24 +02:00
parent 32069f7e9d
commit 7214e26168
7 changed files with 141 additions and 4 deletions

View File

@@ -37,7 +37,9 @@ func scale(Config cfg.Config, serviceId string, up bool)bool{
rq.Header.Set("Authorization", "Bearer "+ token);
rq.Close = true;
rs, err := http.DefaultClient.Do(rq);
defer rs.Body.Close();
if err == nil {
rs.Body.Close();
}
if err != nil{
panic("Failed to send http request"+ err.Error());