This commit is contained in:
6543 2022-07-21 22:00:06 +02:00
parent cfecdb6acc
commit 18a8e777aa
No known key found for this signature in database
GPG key ID: C99B82E40B027BAE
2 changed files with 1 additions and 4 deletions

View file

@ -3,9 +3,6 @@
package html package html
import ( import (
"bytes"
"strconv"
"github.com/valyala/fasthttp" "github.com/valyala/fasthttp"
) )

View file

@ -15,7 +15,7 @@ import (
func TestHandlerPerformance(t *testing.T) { func TestHandlerPerformance(t *testing.T) {
giteaRoot := "https://codeberg.org" giteaRoot := "https://codeberg.org"
giteaClient, _ := gitea.NewClient(giteaRoot, "") giteaClient, _ := gitea.NewClient(giteaRoot, "", cache.NewKeyValueCache())
testHandler := Handler( testHandler := Handler(
[]byte("codeberg.page"), []byte("raw.codeberg.org"), []byte("codeberg.page"), []byte("raw.codeberg.org"),
giteaClient, giteaClient,