Skip to content

Commit

Permalink
chore(config/source/cli): Replace it with "cli", refs issue go-orb/go…
Browse files Browse the repository at this point in the history
…-orb#17 , pt1.
  • Loading branch information
jochumdev committed Mar 7, 2025
1 parent 547185e commit 8f66e8e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 19 deletions.
2 changes: 1 addition & 1 deletion client/orb/transport/basehertz/basehertz.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func (t *Transport) call2(
}

if hRes.StatusCode() != consts.StatusOK {
return res, orberrors.NewHTTP(hRes.StatusCode())
return res, orberrors.HTTP(hRes.StatusCode())
}

if opts.ResponseMetadata != nil {
Expand Down
9 changes: 0 additions & 9 deletions registry/mdns/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"fmt"

"github.com/go-orb/go-orb/config"
"github.com/go-orb/go-orb/config/source/cli"
"github.com/go-orb/go-orb/registry"
"github.com/go-orb/go-orb/types"
)
Expand All @@ -23,14 +22,6 @@ var (
)

func init() {
//nolint:errcheck
_ = cli.Flags.Add(cli.NewFlag(
"registry_domain",
DefaultDomain,
cli.ConfigPathSlice([]string{"registry", "domain"}),
cli.Usage("Registry domain."),
))

registry.Plugins.Add(Name, ProvideRegistryMDNS)
}

Expand Down
9 changes: 0 additions & 9 deletions registry/nats/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"fmt"

"github.com/go-orb/go-orb/config"
"github.com/go-orb/go-orb/config/source/cli"
"github.com/go-orb/go-orb/registry"
"github.com/go-orb/go-orb/types"
)
Expand All @@ -23,14 +22,6 @@ var (
)

func init() {
//nolint:errcheck
_ = cli.Flags.Add(cli.NewFlag(
"registry_addresses",
DefaultAddresses,
cli.ConfigPathSlice([]string{"registry", "addresses"}),
cli.Usage("Registry addresses."),
))

registry.Plugins.Add(Name, ProvideRegistryNATS)
}

Expand Down

0 comments on commit 8f66e8e

Please sign in to comment.