mirror of
https://github.com/kataras/iris.git
synced 2025-12-17 18:07:01 +00:00
Update DONATIONS.md summary & iris updater runs async unless CheckForUpdatesSync is true
This commit is contained in:
6
iris.go
6
iris.go
@@ -78,7 +78,7 @@ import (
|
||||
|
||||
const (
|
||||
// Version is the current version of the Iris web framework
|
||||
Version = "4.2.5"
|
||||
Version = "4.2.6"
|
||||
|
||||
banner = ` _____ _
|
||||
|_ _| (_)
|
||||
@@ -288,8 +288,10 @@ func (s *Framework) initialize() {
|
||||
// updates, to cover the default station's irs.Config.checkForUpdates
|
||||
// note: we could use the IsDevelopment configuration field to do that BUT
|
||||
// the developer may want to check for updates without, for example, re-build template files (comes from IsDevelopment) on each request
|
||||
if s.Config.CheckForUpdates {
|
||||
if s.Config.CheckForUpdatesSync {
|
||||
s.CheckForUpdates(false)
|
||||
} else if s.Config.CheckForUpdates {
|
||||
go func() { s.CheckForUpdates(false) }()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user