chore(storage): minor refactoring

- Unexport `SyncServers`
- Re-generate mock file
- Remove single use function
This commit is contained in:
Quentin McGaw
2022-05-28 22:51:19 +00:00
parent b345368257
commit 8e1316bd8a
8 changed files with 64 additions and 65 deletions

View File

@@ -14,8 +14,8 @@ func countServers(allServers models.AllServers) (count int) {
return count
}
// SyncServers merges the hardcoded servers with the ones from the file.
func (s *Storage) SyncServers() (err error) {
// syncServers merges the hardcoded servers with the ones from the file.
func (s *Storage) syncServers() (err error) {
hardcodedVersions := make(map[string]uint16, len(s.hardcodedServers.ProviderToServers))
for provider, servers := range s.hardcodedServers.ProviderToServers {
hardcodedVersions[provider] = servers.Version