Currently, all but queue.go and map.go read viper parameters through Config struct which was initialized by Config.ReadConfig(). In queue.go, it reads queue_directory directly via viper. In map.go, it reads map and map.all and store them in a local variable.
This makes integration of shoveler into other system (like Pelican) difficult as it didn't consistently read the configuration.
To fix, now all the sub-functions are reading a single Config struct which is still initialized in Config.ReadConfig()
Currently, all but
queue.go
andmap.go
read viper parameters throughConfig
struct which was initialized byConfig.ReadConfig()
. Inqueue.go
, it readsqueue_directory
directly via viper. Inmap.go
, it readsmap
andmap.all
and store them in a local variable.This makes integration of shoveler into other system (like Pelican) difficult as it didn't consistently read the configuration.
To fix, now all the sub-functions are reading a single Config struct which is still initialized in
Config.ReadConfig()