More debug output and servers refresh fix.
Fixed servers lists refresh. Despite on what list we're updating (all servers or only favorites) server item should be updated in both.
This commit is contained in:
2
cache/cache_object.go
vendored
2
cache/cache_object.go
vendored
@@ -101,6 +101,7 @@ func (c *Cache) initializeStorages() {
|
||||
}
|
||||
|
||||
func (c *Cache) LoadServers() {
|
||||
fmt.Println("Loading servers into cache...")
|
||||
c.Servers = make(map[string]*cachemodels.Server)
|
||||
// Getting servers from database.
|
||||
raw_servers := []datamodels.Server{}
|
||||
@@ -129,4 +130,5 @@ func (c *Cache) LoadServers() {
|
||||
c.Servers[key].Server.ExtendedConfig = server.ExtendedConfig
|
||||
c.Servers[key].Server.PlayersInfo = server.PlayersInfo
|
||||
}
|
||||
fmt.Println("Load completed.")
|
||||
}
|
||||
|
Reference in New Issue
Block a user