Browse Source

Update viper.go

core/viper.go:61:95: syntax error: unexpected newline, expecting comma or )
main
MZZZ 3 years ago
committed by GitHub
parent
commit
263c7547bc
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      server/core/viper.go

2
server/core/viper.go

@ -58,7 +58,7 @@ func Viper(path ...string) *viper.Viper {
} }
global.GVA_CONFIG.AutoCode.Root, _ = filepath.Abs("..") global.GVA_CONFIG.AutoCode.Root, _ = filepath.Abs("..")
global.BlackCache = local_cache.NewCache( global.BlackCache = local_cache.NewCache(
local_cache.SetDefaultExpire(time.Second * time.Duration(global.GVA_CONFIG.JWT.ExpiresTime))
local_cache.SetDefaultExpire(time.Second * time.Duration(global.GVA_CONFIG.JWT.ExpiresTime)),
) )
return v return v
} }
Loading…
Cancel
Save