Use request.CTX instead of *request.Context (#24877)

* Use request.CTX instead of *request.Context

* Fix tests
Этот коммит содержится в:
Ben Schumacher
2023-10-30 16:33:37 +01:00
коммит произвёл GitHub
родитель 37dc35c1a1
Коммит c7461751f2
106 изменённых файлов: 612 добавлений и 613 удалений

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

@@ -554,7 +554,7 @@ func (s *Server) doPostPriorityConfigDefaultTrueMigration() {
}
}
func (s *Server) doElasticsearchFixChannelIndex(c *request.Context) {
func (s *Server) doElasticsearchFixChannelIndex(c request.CTX) {
// If the migration is already marked as completed, don't do it again.
if _, err := s.Store().System().GetByName(model.MigrationKeyElasticsearchFixChannelIndex); err == nil {
return
@@ -572,7 +572,7 @@ func (s *Server) doElasticsearchFixChannelIndex(c *request.Context) {
}
}
func (s *Server) doCloudS3PathMigrations(c *request.Context) {
func (s *Server) doCloudS3PathMigrations(c request.CTX) {
// This migration is only applicable for cloud environments
if os.Getenv("MM_CLOUD_FILESTORE_BIFROST") == "" {
return
@@ -600,7 +600,7 @@ func (s *Server) doCloudS3PathMigrations(c *request.Context) {
}
}
func (s *Server) doDeleteEmptyDraftsMigration(c *request.Context) {
func (s *Server) doDeleteEmptyDraftsMigration(c request.CTX) {
// If the migration is already marked as completed, don't do it again.
if _, err := s.Store().System().GetByName(model.MigrationKeyDeleteEmptyDrafts); err == nil {
return