Migrate store methods to use request.Context instead of context.Context (#24836)

Этот коммит содержится в:
Ben Schumacher
2023-10-11 13:08:55 +02:00
коммит произвёл GitHub
родитель 0d5a8b8841
Коммит 13c05a571f
127 изменённых файлов: 1030 добавлений и 921 удалений

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

@@ -182,7 +182,7 @@ func buildExportCmdF(format string) func(command *cobra.Command, args []string)
return errors.New("message export feature not available")
}
warningsCount, appErr := a.MessageExport().RunExport(format, startTime, limit)
warningsCount, appErr := a.MessageExport().RunExport(request.EmptyContext(a.Log()), format, startTime, limit)
if appErr != nil {
return appErr
}

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

@@ -426,7 +426,7 @@ func (s *MmctlE2ETestSuite) TestBotCreateCmdF() {
token, ok := printer.GetLines()[1].(*model.UserAccessToken)
s.Require().True(ok)
defer func() {
err := s.th.App.RevokeUserAccessToken(token)
err := s.th.App.RevokeUserAccessToken(s.th.Context, token)
s.Require().Nil(err)
}()
s.Require().Empty(printer.GetErrorLines())