mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-10 18:05:48 +02:00
fix: implement context handling in analytic and processing functions for graceful shutdown
This commit is contained in:
parent
710b9f781e
commit
fc507ccd3b
4 changed files with 24 additions and 3 deletions
|
@ -30,9 +30,13 @@ import (
|
|||
cSettings "github.com/uozi-tech/cosy/settings"
|
||||
)
|
||||
|
||||
var Context context.Context
|
||||
|
||||
func Boot(ctx context.Context) {
|
||||
defer recovery()
|
||||
|
||||
Context = ctx
|
||||
|
||||
async := []func(){
|
||||
InitJsExtensionType,
|
||||
InitNodeSecret,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue