mirror of
https://github.com/lejianwen/rustdesk-api.git
synced 2026-02-04 21:30:36 +00:00
style(service): refactor global dependencies to use local variables
This commit is contained in:
@@ -164,6 +164,9 @@ func InitGlobal() {
|
||||
global.Jwt = jwt.NewJwt(global.Config.Jwt.Key, global.Config.Jwt.ExpireDuration)
|
||||
//locker
|
||||
global.Lock = lock.NewLocal()
|
||||
|
||||
//service
|
||||
service.New(&global.Config, global.DB, global.Logger, global.Jwt, global.Lock)
|
||||
}
|
||||
func DatabaseAutoUpdate() {
|
||||
version := 262
|
||||
|
||||
Reference in New Issue
Block a user