mirror of
https://github.com/dcarrillo/whatismyip.git
synced 2025-07-01 03:29:28 +00:00
Move models initial setup to server handler (not ideal)
This commit is contained in:
@ -28,6 +28,7 @@ func Setup(servers []Server) *Manager {
|
||||
func (m *Manager) Run() {
|
||||
m.start()
|
||||
|
||||
models.Setup(setting.App.GeodbPath.City, setting.App.GeodbPath.ASN)
|
||||
signalChan := make(chan os.Signal, len(m.servers))
|
||||
signal.Notify(signalChan, syscall.SIGHUP, syscall.SIGINT, syscall.SIGTERM)
|
||||
var s os.Signal
|
||||
|
Reference in New Issue
Block a user