fix feedback

This commit is contained in:
EndlessLucky 2026-04-07 07:32:38 -04:00
parent 3b95ef8138
commit 0d62a68eaa
2 changed files with 8 additions and 3 deletions

View file

@ -130,6 +130,11 @@ func telegramTLSConfig(cfg config.TelegramConfig) (*tls.Config, error) {
base, err := x509.SystemCertPool() base, err := x509.SystemCertPool()
if err != nil || base == nil { if err != nil || base == nil {
if err != nil {
logger.WarnCF("telegram", "Failed to load system cert pool; using empty cert pool", map[string]any{
"error": err.Error(),
})
}
base = x509.NewCertPool() base = x509.NewCertPool()
} }

View file

@ -325,9 +325,9 @@ func (p *PlaceholderConfig) GetRandomText() string {
} }
type StreamingConfig struct { type StreamingConfig struct {
Enabled bool `json:"enabled,omitempty" env:"PICOCLAW_CHANNELS_TELEGRAM_STREAMING_ENABLED"` Enabled bool `json:"enabled,omitempty" env:"STREAMING_ENABLED"`
ThrottleSeconds int `json:"throttle_seconds,omitempty" env:"PICOCLAW_CHANNELS_TELEGRAM_STREAMING_THROTTLE_SECONDS"` ThrottleSeconds int `json:"throttle_seconds,omitempty" env:"STREAMING_THROTTLE_SECONDS"`
MinGrowthChars int `json:"min_growth_chars,omitempty" env:"PICOCLAW_CHANNELS_TELEGRAM_STREAMING_MIN_GROWTH_CHARS"` MinGrowthChars int `json:"min_growth_chars,omitempty" env:"STREAMING_MIN_GROWTH_CHARS"`
} }
type WhatsAppConfig struct { type WhatsAppConfig struct {