Skip to content

Commit

Permalink
removed prepending http from graphql url in gateway config service (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
brennanjl authored Feb 14, 2023
1 parent 69ce43d commit 13f57df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
9 changes: 3 additions & 6 deletions internal/app/kwild/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ package config

import (
"fmt"
"github.com/spf13/pflag"
"github.com/spf13/viper"
"kwil/internal/pkg/config"
"kwil/pkg/fund"
"kwil/pkg/log"
"os"
"strings"

"github.com/spf13/pflag"
"github.com/spf13/viper"
)

const (
Expand Down Expand Up @@ -51,9 +51,6 @@ type GatewayConfig struct {

func (c *GatewayConfig) GetGraphqlUrl() string {
graphqlUrl := c.Addr + "/graphql"
if !strings.Contains(graphqlUrl, "http") {
graphqlUrl = "http://" + graphqlUrl
}
return graphqlUrl
}

Expand Down
2 changes: 1 addition & 1 deletion proto

0 comments on commit 13f57df

Please sign in to comment.