Michael Yang 11 месяцев назад
Родитель
Сommit
8ffb51749f
5 измененных файлов с 4 добавлено и 5 удалено
  1. 0 1
      cmd/cmd.go
  2. 1 1
      readline/readline.go
  3. 1 1
      server/download.go
  4. 1 1
      server/images.go
  5. 1 1
      server/upload.go

+ 0 - 1
cmd/cmd.go

@@ -1030,7 +1030,6 @@ func initializeKeypair() error {
 	return nil
 	return nil
 }
 }
 
 
-//nolint:unused
 func waitForServer(ctx context.Context, client *api.Client) error {
 func waitForServer(ctx context.Context, client *api.Client) error {
 	// wait for the server to start
 	// wait for the server to start
 	timeout := time.After(5 * time.Second)
 	timeout := time.After(5 * time.Second)

+ 1 - 1
readline/readline.go

@@ -81,7 +81,7 @@ func (i *Instance) Readline() (string, error) {
 
 
 	defer func() {
 	defer func() {
 		fd := int(syscall.Stdin)
 		fd := int(syscall.Stdin)
-		// nolint: errcheck
+		//nolint:errcheck
 		UnsetRawMode(fd, i.Terminal.termios)
 		UnsetRawMode(fd, i.Terminal.termios)
 		i.Terminal.rawmode = false
 		i.Terminal.rawmode = false
 	}()
 	}()

+ 1 - 1
server/download.go

@@ -372,7 +372,7 @@ func downloadBlob(ctx context.Context, opts downloadOpts) error {
 			return err
 			return err
 		}
 		}
 
 
-		// nolint: contextcheck
+		//nolint:contextcheck
 		go download.Run(context.Background(), requestURL, opts.regOpts)
 		go download.Run(context.Background(), requestURL, opts.regOpts)
 	}
 	}
 
 

+ 1 - 1
server/images.go

@@ -661,7 +661,7 @@ func deleteUnusedLayers(skipModelPath *ModelPath, deleteMap map[string]struct{})
 		// save (i.e. delete from the deleteMap) any files used in other manifests
 		// save (i.e. delete from the deleteMap) any files used in other manifests
 		manifest, _, err := GetManifest(fmp)
 		manifest, _, err := GetManifest(fmp)
 		if err != nil {
 		if err != nil {
-			// nolint: nilerr
+			//nolint:nilerr
 			return nil
 			return nil
 		}
 		}
 
 

+ 1 - 1
server/upload.go

@@ -391,7 +391,7 @@ func uploadBlob(ctx context.Context, mp ModelPath, layer *Layer, opts *registryO
 			return err
 			return err
 		}
 		}
 
 
-		// nolint: contextcheck
+		//nolint:contextcheck
 		go upload.Run(context.Background(), opts)
 		go upload.Run(context.Background(), opts)
 	}
 	}