From 13f57df5ae6151da322199056041f2900d5837c7 Mon Sep 17 00:00:00 2001 From: brennanjl <66885902+brennanjl@users.noreply.github.com> Date: Tue, 14 Feb 2023 11:14:34 -0600 Subject: [PATCH] removed prepending http from graphql url in gateway config service (#27) --- internal/app/kwild/config/config.go | 9 +++------ proto | 2 +- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/internal/app/kwild/config/config.go b/internal/app/kwild/config/config.go index 9a58300a5..1c2e3fa54 100644 --- a/internal/app/kwild/config/config.go +++ b/internal/app/kwild/config/config.go @@ -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 ( @@ -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 } diff --git a/proto b/proto index 661a8124d..b0e8f09a0 160000 --- a/proto +++ b/proto @@ -1 +1 @@ -Subproject commit 661a8124d49a6fc1a4c243fa652561f19d819820 +Subproject commit b0e8f09a085b50c0b822c80e15d0efd80187b46f