Explorar el Código

Little cleanup

DarthSim hace 7 años
padre
commit
d333c7ca61
Se han modificado 1 ficheros con 0 adiciones y 7 borrados
  1. 0 7
      server.go

+ 0 - 7
server.go

@@ -7,7 +7,6 @@ import (
 	"fmt"
 	"log"
 	"net/http"
-	"sync"
 	"time"
 
 	nanoid "github.com/matoous/go-nanoid"
@@ -21,12 +20,6 @@ var (
 		imageTypeWEBP: "image/webp",
 	}
 
-	responseBufPool = sync.Pool{
-		New: func() interface{} {
-			return new(bytes.Buffer)
-		},
-	}
-
 	authHeaderMust []byte
 
 	healthRequestURI = []byte("/health")