Fix shutdown, fix broken announces
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user