refactor: Remove default configuration constants and simplify config parsing

This commit is contained in:
2024-11-11 15:01:18 +02:00
committed by antanst (aider)
parent c7b0778b77
commit 6346c9a829

View File

@@ -18,15 +18,6 @@ const (
EnvResponseTimeout = "RESPONSE_TIMEOUT" EnvResponseTimeout = "RESPONSE_TIMEOUT"
) )
// Default configuration values
const (
DefaultLogLevel = zerolog.InfoLevel
DefaultNumWorkers = 5
DefaultWorkerBatchSize = 100
DefaultMaxResponseSize = 1048576 // 1MB
DefaultResponseTimeout = 30 // seconds
)
// Config holds the application configuration loaded from environment variables // Config holds the application configuration loaded from environment variables
type Config struct { type Config struct {
LogLevel zerolog.Level // Logging level (debug, info, warn, error) LogLevel zerolog.Level // Logging level (debug, info, warn, error)