From 6bab0e2368ea6c9d272b29dd9801bb7c432c1383 Mon Sep 17 00:00:00 2001 From: Josh Yan Date: Wed, 10 Jul 2024 12:36:32 -0700 Subject: [PATCH] lint --- api/client.go | 1 - api/types.go | 5 ----- 2 files changed, 6 deletions(-) diff --git a/api/client.go b/api/client.go index 813cf4802..5a445a251 100644 --- a/api/client.go +++ b/api/client.go @@ -382,7 +382,6 @@ func (c *Client) Version(ctx context.Context) (string, error) { } func Authorization(ctx context.Context, request *http.Request) (string, error) { - data := []byte(fmt.Sprintf("%s,%s,%d", request.Method, request.URL.RequestURI(), time.Now().Unix())) home, err := os.UserHomeDir() diff --git a/api/types.go b/api/types.go index 1eddb7695..87844c67c 100644 --- a/api/types.go +++ b/api/types.go @@ -359,11 +359,6 @@ type ModelDetails struct { QuantizationLevel string `json:"quantization_level"` } -// EnvConfig is the configuration for the environment. -type ServerConfig struct { - ModelDir string `json:"model_dir"` -} - func (m *Metrics) Summary() { if m.TotalDuration > 0 { fmt.Fprintf(os.Stderr, "total duration: %v\n", m.TotalDuration)