debug
All checks were successful
Deploy / CreateImage (push) Successful in 2m52s
Deploy / ValidateConfig (push) Successful in 31s
Deploy / MigrateDatabase (push) Successful in 57s
Deploy / DeployService (push) Successful in 29s

This commit is contained in:
skeris 2025-06-13 14:13:20 +03:00
parent 9d2fc298c2
commit bc0f185549

@ -110,6 +110,7 @@ func (r *GigaChatClient) TokenResearch(ctx context.Context) {
select {
case <-ticker.C:
ttl, err := r.redisClient.TTL(ctx, "gigachat_token").Result()
fmt.Println("GGCHATtoken", ttl, err, ttl<2*time.Minute)
if err != nil || ttl < 2*time.Minute {
if err := r.updateToken(ctx); err != nil {
r.logger.Error("failed to update GigaChat token", zap.Error(err))