- 
                Notifications
    You must be signed in to change notification settings 
- Fork 570
refactor: rename server fields in config #833
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| I know you know, but just making sure we don't change  | 
| Can we have  | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👏
        
          
                starport/services/chain/serve.go
              
                Outdated
          
        
      |  | ||
| host := conf.Faucet.Host | ||
| if conf.Faucet.Port != 0 { | ||
| host = fmt.Sprintf("0.0.0.0:%d", conf.Faucet.Port) | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| host = fmt.Sprintf("0.0.0.0:%d", conf.Faucet.Port) | |
| host = fmt.Sprintf(":%d", conf.Faucet.Port) | 
Let's follow the same pattern here:
https://github.com/tendermint/starport/blob/e94b428a1c4856cf101463d9afc8d8d1cec632a8/starport/chainconf/config.go#L24-L30
        
          
                starport/services/chain/serve.go
              
                Outdated
          
        
      | fmt.Fprintf(c.stdLog(logStarport).out, "🌍 Running a Cosmos '%[1]v' app with Tendermint at %s.\n", c.app.Name, xurl.HTTP(conf.Host.RPC)) | ||
| fmt.Fprintf(c.stdLog(logStarport).out, "🌍 Running a server at %s (LCD)\n", xurl.HTTP(conf.Host.API)) | ||
|  | ||
| host := conf.Faucet.Host | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we move this part related to determining address for the faucet to starporconf.FaucetHost(), and reuse it here?
        
          
                starport/services/chain/serve.go
              
                Outdated
          
        
      | return err | ||
| } | ||
|  | ||
| host := conf.Faucet.Host | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we move this part related to determining address for the faucet to starporconf.FaucetHost(), and reuse it here?
No description provided.