Depublishing some app layer methods (#29559)
* Depublishing some app layer methods * Fixing errors * Addressing PR review comment * Using goimports formatting now
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
c19e0ea0e7
Коммит
31351a48b0
@@ -1366,7 +1366,6 @@ func (s *Server) doReportUserCountForCloudSubscriptionJob() {
|
||||
appInstance := New(ServerConnector(s.Channels()))
|
||||
|
||||
_, err := appInstance.SendSubscriptionHistoryEvent("")
|
||||
|
||||
if err != nil {
|
||||
mlog.Error("an error occurred during daily user count reporting", mlog.Err(err))
|
||||
}
|
||||
@@ -1415,7 +1414,7 @@ func (s *Server) doLicenseExpirationCheck() {
|
||||
return
|
||||
}
|
||||
|
||||
//send email to admin(s)
|
||||
// send email to admin(s)
|
||||
for _, user := range users {
|
||||
user := user
|
||||
if user.Email == "" {
|
||||
@@ -1435,7 +1434,7 @@ func (s *Server) doLicenseExpirationCheck() {
|
||||
})
|
||||
}
|
||||
|
||||
//remove the license
|
||||
// remove the license
|
||||
s.RemoveLicense()
|
||||
}
|
||||
|
||||
@@ -1461,10 +1460,6 @@ func (s *Server) TotalWebsocketConnections() int {
|
||||
return s.Platform().TotalWebsocketConnections()
|
||||
}
|
||||
|
||||
func (s *Server) ClusterHealthScore() int {
|
||||
return s.platform.Cluster().HealthScore()
|
||||
}
|
||||
|
||||
func (ch *Channels) ClientConfigHash() string {
|
||||
return ch.srv.Platform().ClientConfigHash()
|
||||
}
|
||||
@@ -1700,15 +1695,7 @@ func (s *Server) GetMetrics() einterfaces.MetricsInterface {
|
||||
return s.platform.Metrics()
|
||||
}
|
||||
|
||||
// SetRemoteClusterService sets the `RemoteClusterService` to be used by the server.
|
||||
// For testing only.
|
||||
func (s *Server) SetRemoteClusterService(remoteClusterService remotecluster.RemoteClusterServiceIFace) {
|
||||
s.serviceMux.Lock()
|
||||
defer s.serviceMux.Unlock()
|
||||
s.remoteClusterService = remoteClusterService
|
||||
}
|
||||
|
||||
// SetSharedChannelSyncService sets the `SharedChannelSyncService` to be used by the server.
|
||||
// setSharedChannelSyncService sets the `SharedChannelSyncService` to be used by the server.
|
||||
// For testing only.
|
||||
func (s *Server) SetSharedChannelSyncService(sharedChannelService SharedChannelServiceIFace) {
|
||||
s.serviceMux.Lock()
|
||||
|
||||
Ссылка в новой задаче
Block a user