fix feedback
This commit is contained in:
parent
3b95ef8138
commit
0d62a68eaa
2 changed files with 8 additions and 3 deletions
|
|
@ -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()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue