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

View File

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