@@ -127,7 +127,6 @@ const (
127
127
var (
128
128
pool substrate.Manager
129
129
subURLs []string
130
- // poolOnce sync.Once
131
130
132
131
envDev = Environment {
133
132
RunningMode : RunningDev ,
@@ -330,7 +329,6 @@ func getEnvironmentFromParams(params kernel.Params) (Environment, error) {
330
329
env = envProd
331
330
}
332
331
333
- // update it to read local config file instead of trying to download config over and over again
334
332
config , err := getConfig (env .RunningMode , baseExtendedURL , http .DefaultClient )
335
333
if err != nil {
336
334
// maybe the node can't reach the internet right now
@@ -377,13 +375,15 @@ func getEnvironmentFromParams(params kernel.Params) (Environment, error) {
377
375
env .GeoipURLs = geoip
378
376
}
379
377
380
- if flist := config .FlistURL ; len (flist ) > 0 {
381
- env .FlistURL = flist
382
- }
383
-
384
- if storage := config .HubStorage ; len (storage ) > 0 {
385
- env .HubStorage = storage
386
- }
378
+ // flist url and hub urls shouldn't listen to changes in config as long as we can't change it at run time.
379
+ // it would cause breakage in vmd that needs a reboot to be recovered.
380
+ // if flist := config.FlistURL; len(flist) > 0 {
381
+ // env.FlistURL = flist
382
+ // }
383
+ //
384
+ // if storage := config.HubStorage; len(storage) > 0 {
385
+ // env.HubStorage = storage
386
+ // }
387
387
388
388
if hub := config .HubURL ; len (hub ) > 0 {
389
389
env .HubURL = hub
@@ -397,14 +397,14 @@ func getEnvironmentFromParams(params kernel.Params) (Environment, error) {
397
397
// if the node running v4 chage urls to use v4 hub
398
398
if params .IsV4 () {
399
399
env .FlistURL = defaultV4FlistURL
400
- if flist := config .V4FlistURL ; len (flist ) > 0 {
401
- env .FlistURL = flist
402
- }
400
+ // if flist := config.V4FlistURL; len(flist) > 0 {
401
+ // env.FlistURL = flist
402
+ // }
403
403
404
404
env .HubStorage = defaultV4HubStorage
405
- if storage := config .V4HubStorage ; len (storage ) > 0 {
406
- env .HubStorage = storage
407
- }
405
+ // if storage := config.V4HubStorage; len(storage) > 0 {
406
+ // env.HubStorage = storage
407
+ // }
408
408
409
409
}
410
410
0 commit comments