DarthSim 6 роки тому
батько
коміт
d333c7ca61
1 змінених файлів з 0 додано та 7 видалено
  1. 0 7
      server.go

+ 0 - 7
server.go

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