[windows-x] Startup/Shutdown -> OnStartup/OnShutdown

This commit is contained in:
Lea Anthony
2021-08-26 20:38:03 +10:00
parent e00d65d468
commit 58dc917fb7
16 changed files with 59 additions and 59 deletions

View File

@@ -27,7 +27,7 @@ type Runtime struct {
//ctx
ctx context.Context
// Startup Hook
// OnStartup Hook
startupOnce sync.Once
// Service bus
@@ -66,7 +66,7 @@ func (r *Runtime) Start() error {
// Spin off a go routine
go func() {
defer r.logger.Trace("Shutdown")
defer r.logger.Trace("OnShutdown")
for {
select {
case hooksMessage := <-r.hooksChannel: