Skip to content

Commit

Permalink
experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
dabasov committed Nov 15, 2023
1 parent 9f65b2e commit d4821f8
Show file tree
Hide file tree
Showing 4 changed files with 1,274 additions and 7 deletions.
4 changes: 2 additions & 2 deletions core/conf/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ package conf

import (
"errors"
"net/url"
"os"
"strings"

thrown "github.com/0chain/errors"
"github.com/0chain/gosdk/core/sys"
"github.com/0chain/gosdk/core/util"
"github.com/spf13/viper"
)

Expand Down Expand Up @@ -171,6 +171,6 @@ func LoadConfig(v Reader) (Config, error) {
}

func isURL(s string) bool {
u, err := url.Parse(s)
u, err := util.Parse(s)
return err == nil && u.Scheme != "" && u.Host != ""
}
Loading

0 comments on commit d4821f8

Please sign in to comment.