Move Channels into App (#18623)
* Move Channels into App In this PR, we make Channels as part of App instead of Server. This is part of the transition period of moving fields from Server to Channels. For now, Channels contains Server. So the hierarchy is App -> Channels -> Server. And as a first step, we also move httpService to Channels. ```release-note NONE ``` * Fixing another test ```release-note NONE ``` * new method ```release-note NONE ```
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
561bc968c8
Коммит
f0ecdcc5f5
@@ -101,7 +101,7 @@ func (a *App) HubStart() {
|
||||
}
|
||||
// Assigning to the hubs slice without any mutex is fine because it is only assigned once
|
||||
// during the start of the program and always read from after that.
|
||||
a.srv.hubs = hubs
|
||||
a.ch.srv.hubs = hubs
|
||||
}
|
||||
|
||||
func (a *App) invalidateCacheForWebhook(webhookID string) {
|
||||
@@ -259,7 +259,7 @@ func (a *App) invalidateCacheForChannelPosts(channelID string) {
|
||||
func (a *App) InvalidateCacheForUser(userID string) {
|
||||
a.Srv().invalidateCacheForUserSkipClusterSend(userID)
|
||||
|
||||
a.srv.userService.InvalidateCacheForUser(userID)
|
||||
a.ch.srv.userService.InvalidateCacheForUser(userID)
|
||||
}
|
||||
|
||||
func (a *App) invalidateCacheForUserTeams(userID string) {
|
||||
|
||||
Ссылка в новой задаче
Block a user