Cleanup related to context refactor (#9988)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
829f183bb0
Коммит
8429add371
@@ -171,12 +171,22 @@ func (a *App) RemoveLicense() *model.AppError {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (s *Server) AddLicenseListener(listener func()) string {
|
||||
id := model.NewId()
|
||||
s.licenseListeners[id] = listener
|
||||
return id
|
||||
}
|
||||
|
||||
func (a *App) AddLicenseListener(listener func()) string {
|
||||
id := model.NewId()
|
||||
a.Srv.licenseListeners[id] = listener
|
||||
return id
|
||||
}
|
||||
|
||||
func (s *Server) RemoveLicenseListener(id string) {
|
||||
delete(s.licenseListeners, id)
|
||||
}
|
||||
|
||||
func (a *App) RemoveLicenseListener(id string) {
|
||||
delete(a.Srv.licenseListeners, id)
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user