Skip to content

Commit

Permalink
Rename Reflector setting to ReflectorAddress
Browse files Browse the repository at this point in the history
  • Loading branch information
anbsky committed Sep 18, 2019
1 parent a884c98 commit 4669299
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
6 changes: 3 additions & 3 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ func GetBlobFilesDir() string {
return Config.Viper.GetString("BlobFilesDir")
}

// GetReflector returns reflector address in the format of host:port.
func GetReflector() string {
return Config.Viper.GetString("Reflector")
// GetReflectorAddress returns reflector address in the format of host:port.
func GetReflectorAddress() string {
return Config.Viper.GetString("ReflectorAddress")
}
2 changes: 1 addition & 1 deletion deployments/docker/app/config/lbrytv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ MetricsPath: /metrics
PublishSourceDir: /storage/publish
BlobFilesDir: /storage/lbrynet/blobfiles

Reflector: reflector.lbry.com:5566
ReflectorAddress: reflector.lbry.com:5566
2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ require (
github.com/lbryio/types v0.0.0-20190715201353-fe180635eafe // indirect
github.com/lib/pq v1.1.1
github.com/magiconair/properties v1.8.1 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.1 // indirect
github.com/nlopes/slack v0.6.0 // indirect
github.com/onsi/ginkgo v1.10.1 // indirect
github.com/onsi/gomega v1.7.0 // indirect
Expand Down
2 changes: 1 addition & 1 deletion lbrytv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ MetricsPath: /metrics
PublishSourceDir: /storage/published
BlobFilesDir: /storage/lbrynet/blobfiles

Reflector: reflector.lbry.com:5566
ReflectorAddress: reflector.lbry.com:5566
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func main() {
defer conn.Close()
conn.SetDefaultConnection()

rMgr := reflection.NewManager(config.GetBlobFilesDir(), config.GetReflector())
rMgr := reflection.NewManager(config.GetBlobFilesDir(), config.GetReflectorAddress())
rMgr.Initialize()
rMgr.Start(time.Minute)

Expand Down

0 comments on commit 4669299

Please sign in to comment.