refactor: Remove default configuration constants and simplify config parsing
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user