Skip to content

Commit

Permalink
remove comment
Browse files Browse the repository at this point in the history
  • Loading branch information
vgonkivs committed Sep 22, 2023
1 parent c906581 commit dfa1fce
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions api/rpc/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@ func NewPublicClient(ctx context.Context, addr string) (*Client, error) {
}

// NewClient creates a new Client with one connection per namespace with the
// given token as the authorization token. In case if token will be empty, then
// `CELESTIA_NODE_AUTH_TOKEN` will be used in order to get the token.
// given token as the authorization token.
func NewClient(ctx context.Context, addr string, token string) (*Client, error) {
authHeader := http.Header{perms.AuthKey: []string{fmt.Sprintf("Bearer %s", token)}}
return newClient(ctx, addr, authHeader)
Expand Down

0 comments on commit dfa1fce

Please sign in to comment.