Updata:更新请求
This commit is contained in:
parent
dbc231d5f3
commit
dcd4f5f0fd
@ -295,7 +295,8 @@ func SecurityScan(ctx *gin.Context) {
|
||||
go func() {
|
||||
|
||||
// 使用独立的 context,避免原请求 context 被取消
|
||||
scanCtx := context.Background()
|
||||
scanCtx, cancel := context.WithTimeout(context.Background(), 10*time.Minute)
|
||||
defer cancel()
|
||||
// 执行安全扫描
|
||||
_, err := service.FilesProvider.SecurityScan(scanCtx, &req)
|
||||
if err != nil {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user