ghowland / web6.0

Web Six Point Oh
MIT License
1 stars 5 forks source link

Move config to a separate package #38

Closed ketkar closed 6 years ago

ketkar commented 6 years ago

A package needing the Config struct, while also getting started by Start(), will create a circular dependency (which isn't allowed). In this diff, I separate the config into a separate package so multiple packages can call its functions.

This will unblock the job runner, which also connects to the DB and requires access to the Config struct.

No expected change in functionality. Tested locally.

zelin-l commented 6 years ago

LGTM if Geoff approves as well