1

Fix shutdown, fix broken announces

This commit is contained in:
2019-01-09 03:24:12 +04:00
parent 7612ce778f
commit dca290beb1
4 changed files with 16 additions and 10 deletions

View File

@@ -13,12 +13,14 @@ const VERSION = "0.0.2"
// Context is the main application context.
type Context struct {
Config *config.Struct
Logger zerolog.Logger
Config *config.Struct
Logger zerolog.Logger
ShutdownDone chan bool
}
// NewContext is an initialization function for Context
func NewContext() *Context {
c := &Context{}
c.ShutdownDone = make(chan bool, 1)
return c
}