Skip to content

Commit

Permalink
stop unnecesarry GC
Browse files Browse the repository at this point in the history
  • Loading branch information
ykadowak committed Sep 15, 2023
1 parent e21441c commit 66bc79c
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pkg/index/job/correction/service/corrector.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import (
"io"
"os"
"path/filepath"
"runtime"
"sync"
"sync/atomic"

Expand Down Expand Up @@ -284,11 +283,7 @@ func (c *correct) correctWithCache(ctx context.Context) (err error) {
return err
}
// delete all the key from the tmpSet
for k := range tmpSet {
delete(tmpSet, k)
}
tmpSet = nil
runtime.GC()
// ~DEBUG:

log.Infof("correction finished for agent %s", addr)
Expand Down

0 comments on commit 66bc79c

Please sign in to comment.