Skip to content

Commit

Permalink
Package Config:
Browse files Browse the repository at this point in the history
- component aws : fix creation client with httpcli config was not init before client creation

Other:
- bump dependencies
  • Loading branch information
nabbar committed Apr 18, 2023
1 parent e0e9aad commit 0301419
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
6 changes: 4 additions & 2 deletions config/components/aws/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,6 @@ func (o *componentAws) _runCli() liberr.Error {

if cfg, mon, htc, err = o._getConfig(); err != nil {
return prt.Error(err)
} else if cli, err = libaws.New(o.x.GetContext(), cfg, o._getHttpClient()); err != nil {
return prt.Error(err)
}

if htc != nil {
Expand All @@ -208,6 +206,10 @@ func (o *componentAws) _runCli() liberr.Error {
})
}

if cli, err = libaws.New(o.x.GetContext(), cfg, o._getHttpClient()); err != nil {
return prt.Error(err)
}

if mon != nil && mon.Enable {
opt = &libreq.Options{
Endpoint: "",
Expand Down
8 changes: 4 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ require (
github.com/aws/aws-sdk-go-v2/credentials v1.13.20
github.com/aws/aws-sdk-go-v2/service/iam v1.19.10
github.com/aws/aws-sdk-go-v2/service/s3 v1.31.3
github.com/bits-and-blooms/bitset v1.5.0
github.com/bits-and-blooms/bitset v1.6.0
github.com/c-bata/go-prompt v0.2.6
github.com/fatih/color v1.15.0
github.com/fsnotify/fsnotify v1.6.0
Expand All @@ -28,7 +28,7 @@ require (
github.com/mitchellh/go-homedir v1.1.0
github.com/mitchellh/mapstructure v1.5.0
github.com/nats-io/jwt/v2 v2.4.1
github.com/nats-io/nats-server/v2 v2.9.15
github.com/nats-io/nats-server/v2 v2.9.16
github.com/nats-io/nats.go v1.25.0
github.com/nutsdb/nutsdb v0.12.0
github.com/onsi/ginkgo/v2 v2.9.2
Expand All @@ -41,7 +41,7 @@ require (
github.com/spf13/jwalterweatherman v1.1.0
github.com/spf13/viper v1.15.0
github.com/vbauerster/mpb/v5 v5.4.0
github.com/xanzy/go-gitlab v0.82.0
github.com/xanzy/go-gitlab v0.83.0
github.com/xhit/go-simple-mail v2.2.2+incompatible
github.com/xujiajun/utils v0.0.0-20220904132955-5f7c5b914235
golang.org/x/exp v0.0.0-20230321023759-10a507213a29
Expand Down Expand Up @@ -139,7 +139,7 @@ require (
github.com/jinzhu/now v1.1.5 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/juju/ratelimit v1.0.2 // indirect
github.com/klauspost/compress v1.16.4 // indirect
github.com/klauspost/compress v1.16.5 // indirect
github.com/klauspost/cpuid/v2 v2.2.4 // indirect
github.com/kr/pretty v0.3.1 // indirect
github.com/kr/text v0.2.0 // indirect
Expand Down

0 comments on commit 0301419

Please sign in to comment.