GH-10617 SyncStore: GetIncomingByChannel to sync (#10633)
* GH-10617 GetIncomingByChannel to sync * GH-10617 using async calls explicitly * GH-10617 order of assignment change * Update store.go * Update store.go * Update store.go * GH-10617 fmt fix
Этот коммит содержится в:
коммит произвёл
Jesse Hallam
родитель
99a8370742
Коммит
1e92646646
@@ -766,8 +766,13 @@ func (a *App) UpdateChannelMemberNotifyProps(data map[string]string, channelId s
|
||||
}
|
||||
|
||||
func (a *App) DeleteChannel(channel *model.Channel, userId string) *model.AppError {
|
||||
ihc := a.Srv.Store.Webhook().GetIncomingByChannel(channel.Id)
|
||||
ihc := make(chan store.StoreResult, 1)
|
||||
ohc := a.Srv.Store.Webhook().GetOutgoingByChannel(channel.Id, -1, -1)
|
||||
go func() {
|
||||
webhooks, err := a.Srv.Store.Webhook().GetIncomingByChannel(channel.Id)
|
||||
ihc <- store.StoreResult{Data: webhooks, Err: err}
|
||||
close(ihc)
|
||||
}()
|
||||
|
||||
var user *model.User
|
||||
if userId != "" {
|
||||
|
||||
Ссылка в новой задаче
Block a user