完善
This commit is contained in:
parent
f2dcd9f81e
commit
6f688b9ea5
3
main.go
3
main.go
|
@ -21,6 +21,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
var confPath string
|
var confPath string
|
||||||
|
var middleWareReloadFn func()
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
flag.StringVar(&confPath, "c", "config.yaml", "config file")
|
flag.StringVar(&confPath, "c", "config.yaml", "config file")
|
||||||
|
@ -115,8 +116,6 @@ func signalNotify() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var middleWareReloadFn func()
|
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
c := config.Conf.Load()
|
c := config.Conf.Load()
|
||||||
if c.Port == "" {
|
if c.Port == "" {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user