From 0d62a68eaa5054c60d5cd323fe2029e8478f9640 Mon Sep 17 00:00:00 2001 From: EndlessLucky <105.olivesoft@gmail.com> Date: Tue, 7 Apr 2026 07:32:38 -0400 Subject: [PATCH] fix feedback --- pkg/channels/telegram/telegram.go | 5 +++++ pkg/config/config.go | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/pkg/channels/telegram/telegram.go b/pkg/channels/telegram/telegram.go index 0fbe56059..55dd41402 100644 --- a/pkg/channels/telegram/telegram.go +++ b/pkg/channels/telegram/telegram.go @@ -130,6 +130,11 @@ func telegramTLSConfig(cfg config.TelegramConfig) (*tls.Config, error) { base, err := x509.SystemCertPool() 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() } diff --git a/pkg/config/config.go b/pkg/config/config.go index ed351e8fc..486404304 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -325,9 +325,9 @@ func (p *PlaceholderConfig) GetRandomText() string { } type StreamingConfig struct { - Enabled bool `json:"enabled,omitempty" env:"PICOCLAW_CHANNELS_TELEGRAM_STREAMING_ENABLED"` - ThrottleSeconds int `json:"throttle_seconds,omitempty" env:"PICOCLAW_CHANNELS_TELEGRAM_STREAMING_THROTTLE_SECONDS"` - MinGrowthChars int `json:"min_growth_chars,omitempty" env:"PICOCLAW_CHANNELS_TELEGRAM_STREAMING_MIN_GROWTH_CHARS"` + Enabled bool `json:"enabled,omitempty" env:"STREAMING_ENABLED"` + ThrottleSeconds int `json:"throttle_seconds,omitempty" env:"STREAMING_THROTTLE_SECONDS"` + MinGrowthChars int `json:"min_growth_chars,omitempty" env:"STREAMING_MIN_GROWTH_CHARS"` } type WhatsAppConfig struct {