Skip to content

Commit

Permalink
Fixed spelling mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
crazytaxii committed Aug 17, 2024
1 parent fdf66c0 commit bf86590
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions cmd/faust/app/faust.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ func NewFaustApp(ver string) *cli.App {
}()

if cfg, err = opts.Config(); err != nil {
return err
return
}

up := uploader.NewKodoUploader(cfg.QServiceConfig)
ctx, cancel := context.WithTimeout(context.Background(), cfg.Timeout)
ctx, cancel := context.WithTimeout(c.Context, cfg.Timeout)
defer cancel()
res, err := up.Upload(ctx, opts.ImagePath)
if err != nil {
return err
return
}
log.WithFields(
log.Fields{
Expand All @@ -61,7 +61,7 @@ func NewFaustApp(ver string) *cli.App {
"hash": res.Hash,
},
).Infof("image url: %v", res.URLs)
return nil
return
},
Flags: cfg.QServiceConfig.Flags(),
},
Expand Down
2 changes: 1 addition & 1 deletion pkg/uploader/uploader.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ type Uploader interface {
type (
// qiniu
QServiceConfig struct {
AccessKey string `jaon:"access_key" yaml:"accessKey"`
AccessKey string `json:"access_key" yaml:"accessKey"`
SecretKey string `json:"secret_key" yaml:"secretKey"`
Expires uint64 `json:"expires" yaml:"expires"`
Bucket string `json:"bucket" yaml:"bucket"`
Expand Down

0 comments on commit bf86590

Please sign in to comment.