MM-62751: [Shared Channels] Allow remote users to be discoverable in the create DM/GM modal (#30918)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
476b46d1d7
Коммит
c46ed6c681
@@ -289,3 +289,19 @@ func (rcs *Service) pause() {
|
||||
|
||||
rcs.server.Log().Debug("Remote Cluster Service inactive")
|
||||
}
|
||||
|
||||
// SetActive forces the service to be active or inactive
|
||||
func (rcs *Service) SetActive(active bool) {
|
||||
rcs.mux.Lock()
|
||||
defer rcs.mux.Unlock()
|
||||
|
||||
if rcs.active == active {
|
||||
return
|
||||
}
|
||||
|
||||
if active {
|
||||
rcs.resume()
|
||||
} else {
|
||||
rcs.pause()
|
||||
}
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user