Add garbage collection after every index rebuild, to test something

This commit is contained in:
Seednode 2024-01-14 10:12:24 -06:00
parent ee09812376
commit 7546c6257f
2 changed files with 4 additions and 1 deletions

View File

@ -9,6 +9,7 @@ import (
"fmt" "fmt"
"net/http" "net/http"
"os" "os"
"runtime"
"sync" "sync"
"time" "time"
@ -212,6 +213,8 @@ func serveIndexRebuild(args []string, index *fileIndex, formats types.Types, enc
time.Since(startTime).Round(time.Microsecond), time.Since(startTime).Round(time.Microsecond),
) )
} }
runtime.GC()
} }
} }

View File

@ -17,7 +17,7 @@ import (
const ( const (
AllowedCharacters string = `^[A-z0-9.\-_]+$` AllowedCharacters string = `^[A-z0-9.\-_]+$`
ReleaseVersion string = "5.4.2" ReleaseVersion string = "5.4.3"
) )
var ( var (