mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-18 19:50:25 +08:00
优化本地数据库性能
This commit is contained in:
13
internal/utils/exit.go
Normal file
13
internal/utils/exit.go
Normal file
@@ -0,0 +1,13 @@
|
||||
// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
|
||||
|
||||
package utils
|
||||
|
||||
import (
|
||||
"github.com/TeaOSLab/EdgeNode/internal/events"
|
||||
"os"
|
||||
)
|
||||
|
||||
func Exit() {
|
||||
events.Notify(events.EventTerminated)
|
||||
os.Exit(0)
|
||||
}
|
||||
Reference in New Issue
Block a user