Skip to content

Commit

Permalink
Merge pull request #133 from MUzairS15/bug-fix
Browse files Browse the repository at this point in the history
Bug Fix
  • Loading branch information
leecalcote authored Jun 2, 2022
2 parents 3a99ce3 + 3f860b7 commit 8a3a430
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 1 addition & 3 deletions internal/config/default_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@ package config

import (
"time"

"github.com/spf13/viper"
)

var (
Server = map[string]string{
"name": "meshery-meshsync",
"port": "11000",
"version": viper.GetString("BUILD"),
"version": "latest",
"startedat": time.Now().String(),
}

Expand Down
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ func main() {
}

cfg.SetKey(config.BrokerURL, os.Getenv("BROKER_URL"))

config.Server["version"] = version
err = cfg.SetObject(config.ServerKey, config.Server)
if err != nil {
log.Error(err)
Expand Down

0 comments on commit 8a3a430

Please sign in to comment.