Upgrade to Go 1.22 and Node v20 (#2861)

* Remove workaround for missing `context.WithoutCancel` in Go 1.20

* Upgrade to Go 1.22

* Upgrade GitHub Actions

* Upgrade Node to v20
This commit is contained in:
Deluan Quintão
2024-02-16 20:29:16 -05:00
committed by GitHub
parent d8e1748928
commit 7167e5ac87
7 changed files with 31 additions and 54 deletions
+1 -1
View File
@@ -178,7 +178,7 @@ func (s *scanner) setStatusEnd(folder string, lastUpdate time.Time) {
}
func (s *scanner) RescanAll(ctx context.Context, fullRescan bool) error {
ctx = contextWithoutCancel(ctx)
ctx = context.WithoutCancel(ctx)
if !isScanning.TryLock() {
log.Debug(ctx, "Scanner already running, ignoring request for rescan.")
return ErrAlreadyScanning