1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-22 03:15:58 +00:00

We need your help with translations into your native language.

Instructions can be found at: https://github.com/kataras/iris/issues/796 written by @speedwheel


Former-commit-id: e612ec2c42e09e10ad8bb17d164f7934bc4dca36
This commit is contained in:
Gerasimos (Makis) Maropoulos
2017-10-26 05:10:40 +03:00
parent 046bd3fc68
commit a5440153c1
4 changed files with 5 additions and 17 deletions

View File

@@ -34,7 +34,7 @@ type versionInfo struct {
}
func checkVersion() {
client := netutil.Client(30 * time.Second)
client := netutil.Client(25 * time.Second)
r, err := client.PostForm("https://iris-go.com/version", url.Values{"current_version": {Version}})
if err != nil {
@@ -60,18 +60,6 @@ func checkVersion() {
return
}
if !v.UpdateAvailable {
return
}
// shouldUpdate := false
// prompt := &survey.Confirm{
// Message: shouldUpdateNowMsg,
// }
// if err := survey.AskOne(prompt, &shouldUpdate, nil); err != nil {
// return
// }
var qs []*survey.Question
// on help? when asking for installing the new update
@@ -157,7 +145,7 @@ func checkVersion() {
}
golog.Infof("Update process finished.\nManual rebuild and restart is required to apply the changes...\n")
} else {
} else if v.UpdateAvailable { // if update was available but choosen not to update.
golog.Infof(ignoreUpdatesMsg)
}
}