Просмотр исходного кода

Renamed UpdateAvailableRegions to ReportAvailableRegions

Adam Pritchard 11 лет назад
Родитель
Сommit
7b96cfc2a0
2 измененных файлов с 4 добавлено и 4 удалено
  1. 1 1
      psiphon/controller.go
  2. 3 3
      psiphon/dataStore.go

+ 1 - 1
psiphon/controller.go

@@ -116,7 +116,7 @@ func NewController(config *Config) (controller *Controller, err error) {
 func (controller *Controller) Run(shutdownBroadcast <-chan struct{}) {
 	NoticeBuildInfo()
 	NoticeCoreVersion(VERSION)
-	UpdateAvailableRegions()
+	ReportAvailableRegions()
 
 	// Start components
 

+ 3 - 3
psiphon/dataStore.go

@@ -260,7 +260,7 @@ func StoreServerEntries(serverEntries []*ServerEntry, replaceIfExists bool) erro
 
 	// Since there has possibly been a significant change in the server entries,
 	// take this opportunity to update the available egress regions.
-	UpdateAvailableRegions()
+	ReportAvailableRegions()
 
 	return nil
 }
@@ -523,8 +523,8 @@ func CountServerEntries(region, protocol string) int {
 	return count
 }
 
-// UpdateAvailableRegions prints a notice with the available egress regions.
-func UpdateAvailableRegions() {
+// ReportAvailableRegions prints a notice with the available egress regions.
+func ReportAvailableRegions() {
 	checkInitDataStore()
 
 	// TODO: For consistency, regions-per-protocol should be used