Skip to content

Commit 15fcbcf

Browse files
authored
Merge pull request #53 from skycoin/fix/service-disc-value
fix service disc value
2 parents b616a55 + 8204bbe commit 15fcbcf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/prepconf/prepare.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,10 @@ func generateVisorConfig(_ Config, bp boot.Params) (interface{}, error) {
120120
out.ShutdownTimeout = visorconfig.DefaultTimeout
121121
out.RestartCheckDelay = restart.DefaultCheckDelay.String()
122122
out.Launcher = &visorconfig.V1Launcher{
123-
Discovery: nil,
123+
Discovery: &visorconfig.V1AppDisc{
124+
ServiceDisc: skyenv.DefaultServiceDiscAddr,
125+
UpdateInterval: visorconfig.Duration(skyenv.AppDiscUpdateInterval),
126+
},
124127
Apps: []launcher.AppConfig{
125128
{
126129
Name: skyenv.SkychatName,

0 commit comments

Comments
 (0)