[go: nahoru, domu]

Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wy65701436 committed Jul 3, 2024
1 parent 2a5ce21 commit 0960524
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/controller/replication/transfer/huggingface/transfer.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ func (t *transfer) download(modelID string) ([]string, error) {
return nil, err
}
filesInModels = append(filesInModels, modelPath)
t.logger.Infof(modelPath, " is copied successfully.")
t.logger.Infof("%s ", modelPath, "is copied successfully.")
}
}

Expand Down Expand Up @@ -288,8 +288,10 @@ func (t *transfer) pushManifest(ctx context.Context, fs *file.Store, manifest v1
Password: "Harbor12345",
}),
}
t.logger.Info("===========")
_, err = oras.Copy(ctx, fs, tag, repo, tag, oras.DefaultCopyOptions)
if err != nil {
t.logger.Infof("%v ", err)
return err
}
t.logger.Infof("the manifest of artifact %s:%s pushed",
Expand Down

0 comments on commit 0960524

Please sign in to comment.