Removed (*App).Shutdown and updated all references. (#15088)

Этот коммит содержится в:
Doug Lauder
2020-07-22 13:30:11 -04:00
коммит произвёл GitHub
родитель 6b5c0bb5d2
Коммит b372b98aca
23 изменённых файлов: 87 добавлений и 114 удалений

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

@@ -13330,21 +13330,6 @@ func (a *OpenTracingAppLayer) SetTeamIconFromMultiPartFile(teamId string, file m
return resultVar0
}
func (a *OpenTracingAppLayer) Shutdown() {
origCtx := a.ctx
span, newCtx := tracing.StartSpanWithParentByContext(a.ctx, "app.Shutdown")
a.ctx = newCtx
a.app.Srv().Store.SetContext(newCtx)
defer func() {
a.app.Srv().Store.SetContext(origCtx)
a.ctx = origCtx
}()
defer span.Finish()
a.app.Shutdown()
}
func (a *OpenTracingAppLayer) SlackAddBotUser(teamId string, log *bytes.Buffer) *model.User {
origCtx := a.ctx
span, newCtx := tracing.StartSpanWithParentByContext(a.ctx, "app.SlackAddBotUser")