x/registry: remove unused code

This commit is contained in:
Blake Mizerany 2024-04-07 20:32:36 -07:00
parent d3c6400487
commit d721228a2b

View File

@ -9,7 +9,6 @@ import (
"log"
"net/http"
"net/url"
"os"
"path"
"strconv"
"time"
@ -28,13 +27,6 @@ const (
DefaultUploadChunkSize = 50 * 1024 * 1024
)
// TODO(bmizerany): move all env things to package envkobs?
var defaultLibrary = cmp.Or(os.Getenv("OLLAMA_REGISTRY"), "registry.ollama.ai/library")
func DefaultLibrary() string {
return defaultLibrary
}
type Server struct {
UploadChunkSize int64 // default is DefaultUploadChunkSize
minioClient *minio.Client