Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
vgonkivs committed Sep 18, 2023
1 parent af5e98b commit ed8c088
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion api/rpc/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var (
)

const (
authEnvKey = "CELESTIA_NODE_AUTH_TOKEN" //nolint:gosec
authEnvKey = "CELESTIA_NODE_AUTH_TOKEN"

DefaultRPCAddress = "http://localhost:26658"
)
Expand Down
17 changes: 8 additions & 9 deletions cmd/celestia/rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package main

import (
"github.com/celestiaorg/celestia-node/api/rpc/client"

blob "github.com/celestiaorg/celestia-node/nodebuilder/blob/cmds"
das "github.com/celestiaorg/celestia-node/nodebuilder/das/cmds"
header "github.com/celestiaorg/celestia-node/nodebuilder/header/cmds"
Expand All @@ -13,13 +12,13 @@ import (
)

func init() {
blob.Cmd.PersistentFlags().StringVar(initUrlFlag())
das.Cmd.PersistentFlags().StringVar(initUrlFlag())
header.Cmd.PersistentFlags().StringVar(initUrlFlag())
p2p.Cmd.PersistentFlags().StringVar(initUrlFlag())
share.Cmd.PersistentFlags().StringVar(initUrlFlag())
state.Cmd.PersistentFlags().StringVar(initUrlFlag())
node.Cmd.PersistentFlags().StringVar(initUrlFlag())
blob.Cmd.PersistentFlags().StringVar(initURLFlag())
das.Cmd.PersistentFlags().StringVar(initURLFlag())
header.Cmd.PersistentFlags().StringVar(initURLFlag())
p2p.Cmd.PersistentFlags().StringVar(initURLFlag())
share.Cmd.PersistentFlags().StringVar(initURLFlag())
state.Cmd.PersistentFlags().StringVar(initURLFlag())
node.Cmd.PersistentFlags().StringVar(initURLFlag())

rootCmd.AddCommand(
blob.Cmd,
Expand All @@ -32,6 +31,6 @@ func init() {
)
}

func initUrlFlag() (*string, string, string, string) {
func initURLFlag() (*string, string, string, string) {
return &client.RequestURL, "url", client.DefaultRPCAddress, "Request URL"
}

0 comments on commit ed8c088

Please sign in to comment.