Migrate cluster to use Server struct directly. (#10101)

Этот коммит содержится в:
Christopher Speller
2019-01-15 09:09:25 -08:00
коммит произвёл GitHub
родитель 004e7d383b
Коммит ae76d27b7d
6 изменённых файлов: 33 добавлений и 17 удалений

Просмотреть файл

@@ -17,9 +17,9 @@ func RegisterAccountMigrationInterface(f func(*App) einterfaces.AccountMigration
accountMigrationInterface = f
}
var clusterInterface func(*App) einterfaces.ClusterInterface
var clusterInterface func(*Server) einterfaces.ClusterInterface
func RegisterClusterInterface(f func(*App) einterfaces.ClusterInterface) {
func RegisterClusterInterface(f func(*Server) einterfaces.ClusterInterface) {
clusterInterface = f
}
@@ -135,6 +135,6 @@ func (s *Server) initEnterprise() {
s.DataRetention = dataRetentionInterface(s.FakeApp())
}
if clusterInterface != nil {
s.Cluster = clusterInterface(s.FakeApp())
s.Cluster = clusterInterface(s)
}
}