feat: improve zip processing speed closes #71

This commit is contained in:
2024-04-08 17:45:32 +01:00
parent 2faf90f462
commit 00369640a8
4 changed files with 171 additions and 75 deletions

View File

@@ -8,8 +8,9 @@ import (
)
type Config struct {
Hostname string
Port int
Hostname string
Port int
NumberOfWorkers int `toml:"number_of_workers"`
}
func LoadConfig() Config {
@@ -21,8 +22,9 @@ func LoadConfig() Config {
log.Error("Failed to load config file", "err", err)
// Use default values
return Config{
Hostname: "localhost",
Port: 8000,
Hostname: "localhost",
Port: 8000,
NumberOfWorkers: 10,
}
}