@@ -380,7 +380,7 @@ func requestExeUpdate(ctx context.Context, fullResp *RuleUpdateResponse, apiUrl,
380380 }
381381 }
382382
383- eb , err = downloadPackage (ctx , apiUrl , dataUrl , token , dataSize , pw , slowCheckTimeout , downloadTimeout )
383+ eb , err = downloadPackage (ctx , apiUrl , dataUrl , token , dataSize , pw , downloadTimeout )
384384 if err != nil {
385385 return err
386386 }
@@ -394,7 +394,7 @@ func requestExeUpdate(ctx context.Context, fullResp *RuleUpdateResponse, apiUrl,
394394 Str ("path" , newExePath ).
395395 Msg ("Temp updated exe path" )
396396
397- hb , err = downloadPackage (ctx , apiUrl , hashUrl , token , hashSize , pw , slowCheckTimeout , downloadTimeout )
397+ hb , err = downloadPackage (ctx , apiUrl , hashUrl , token , hashSize , pw , downloadTimeout )
398398 if err != nil {
399399 return err
400400 }
@@ -408,7 +408,7 @@ func requestExeUpdate(ctx context.Context, fullResp *RuleUpdateResponse, apiUrl,
408408 Str ("path" , newExeHashPath ).
409409 Msg ("Temp updated exe hash path" )
410410
411- sb , err = downloadPackage (ctx , apiUrl , sigUrl , token , sigSize , pw , slowCheckTimeout , downloadTimeout )
411+ sb , err = downloadPackage (ctx , apiUrl , sigUrl , token , sigSize , pw , downloadTimeout )
412412 if err != nil {
413413 return err
414414 }
@@ -511,7 +511,7 @@ func requestRuleUpdate(ctx context.Context, fullResp *RuleUpdateResponse, apiUrl
511511 rb , hb , sb []byte
512512 )
513513
514- rb , err = downloadPackage (ctx , apiUrl , fullResp .RuleUrls .DataUrl , token , fullResp .RuleUrls .DataSize , pw , slowCheckTimeout , downloadTimeout )
514+ rb , err = downloadPackage (ctx , apiUrl , fullResp .RuleUrls .DataUrl , token , fullResp .RuleUrls .DataSize , pw , downloadTimeout )
515515 if err != nil {
516516 return "" , err
517517 }
@@ -525,7 +525,7 @@ func requestRuleUpdate(ctx context.Context, fullResp *RuleUpdateResponse, apiUrl
525525 Str ("path" , newRulePath ).
526526 Msg ("Temp updated rule path" )
527527
528- hb , err = downloadPackage (ctx , apiUrl , fullResp .RuleUrls .HashUrl , token , fullResp .RuleUrls .HashSize , pw , slowCheckTimeout , downloadTimeout )
528+ hb , err = downloadPackage (ctx , apiUrl , fullResp .RuleUrls .HashUrl , token , fullResp .RuleUrls .HashSize , pw , downloadTimeout )
529529 if err != nil {
530530 return "" , err
531531 }
@@ -539,7 +539,7 @@ func requestRuleUpdate(ctx context.Context, fullResp *RuleUpdateResponse, apiUrl
539539 Str ("path" , newRuleHashPath ).
540540 Msg ("Temp updated rule hash path" )
541541
542- sb , err = downloadPackage (ctx , apiUrl , fullResp .RuleUrls .SigUrl , token , fullResp .RuleUrls .SigSize , pw , slowCheckTimeout , downloadTimeout )
542+ sb , err = downloadPackage (ctx , apiUrl , fullResp .RuleUrls .SigUrl , token , fullResp .RuleUrls .SigSize , pw , downloadTimeout )
543543 if err != nil {
544544 return "" , err
545545 }
0 commit comments