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:
1 parent
baf733f171
commit
51b23fa68f
4 files changed
+35
-23
No files matched your search
Vendored
+2
@@ -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