MM-55733 add request context to Channelstore.Save method (#26141)

Этот коммит содержится в:
Aswath S
2024-02-24 17:38:51 +05:30
коммит произвёл GitHub
родитель 401de9b321
Коммит dc8fc773dc
34 изменённых файлов: 481 добавлений и 484 удалений

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

@@ -2094,10 +2094,10 @@ func (s *TimerLayerChannelStore) Restore(channelID string, timestamp int64) erro
return err
}
func (s *TimerLayerChannelStore) Save(channel *model.Channel, maxChannelsPerTeam int64) (*model.Channel, error) {
func (s *TimerLayerChannelStore) Save(rctx request.CTX, channel *model.Channel, maxChannelsPerTeam int64) (*model.Channel, error) {
start := time.Now()
result, err := s.ChannelStore.Save(channel, maxChannelsPerTeam)
result, err := s.ChannelStore.Save(rctx, channel, maxChannelsPerTeam)
elapsed := float64(time.Since(start)) / float64(time.Second)
if s.Root.Metrics != nil {