diff --git a/fileproc/resource_monitor_concurrency.go b/fileproc/resource_monitor_concurrency.go index 822416c..a06e5e2 100644 --- a/fileproc/resource_monitor_concurrency.go +++ b/fileproc/resource_monitor_concurrency.go @@ -51,7 +51,7 @@ func (rm *ResourceMonitor) CreateFileProcessingContext(parent context.Context) ( return parent, func() {} } - return context.WithTimeout(parent, rm.fileProcessingTimeout) + return context.WithTimeout(parent, rm.fileProcessingTimeout) // #nosec G118 - cancel returned to caller } // CreateOverallProcessingContext creates a context with overall processing timeout. @@ -64,5 +64,5 @@ func (rm *ResourceMonitor) CreateOverallProcessingContext(parent context.Context return parent, func() {} } - return context.WithTimeout(parent, rm.overallTimeout) + return context.WithTimeout(parent, rm.overallTimeout) // #nosec G118 - cancel returned to caller } diff --git a/go.sum b/go.sum index 80c12b8..cdccfe6 100644 --- a/go.sum +++ b/go.sum @@ -62,10 +62,6 @@ golang.org/x/sys v0.40.0 h1:DBZZqJ2Rkml6QMQsZywtnjnnGvHza6BTfYFWY9kjEWQ= golang.org/x/sys v0.40.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks= golang.org/x/term v0.39.0 h1:RclSuaJf32jOqZz74CkPA9qFuVTX7vhLlpfj/IGWlqY= golang.org/x/term v0.39.0/go.mod h1:yxzUCTP/U+FzoxfdKmLaA0RV1WgE0VY7hXBwKtY/4ww= -golang.org/x/text v0.33.0 h1:B3njUFyqtHDUI5jMn1YIr5B0IE2U0qck04r6d4KPAxE= -golang.org/x/text v0.33.0/go.mod h1:LuMebE6+rBincTi9+xWTY8TztLzKHc/9C1uBCG27+q8= -golang.org/x/text v0.34.0 h1:oL/Qq0Kdaqxa1KbNeMKwQq0reLCCaFtqu2eNuSeNHbk= -golang.org/x/text v0.34.0/go.mod h1:homfLqTYRFyVYemLBFl5GgL/DWEiH5wcsQ5gSh1yziA= golang.org/x/text v0.35.0 h1:JOVx6vVDFokkpaq1AEptVzLTpDe9KGpj5tR4/X+ybL8= golang.org/x/text v0.35.0/go.mod h1:khi/HExzZJ2pGnjenulevKNX1W67CUy0AsXcNubPGCA= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=