server/channels: remove newWebConn method (#22933)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
5d122e5d7a
Коммит
a2e70eb71c
@@ -264,8 +264,6 @@ type AppIface interface {
|
|||||||
// MoveChannel method is prone to data races if someone joins to channel during the move process. However this
|
// MoveChannel method is prone to data races if someone joins to channel during the move process. However this
|
||||||
// function is only exposed to sysadmins and the possibility of this edge case is relatively small.
|
// function is only exposed to sysadmins and the possibility of this edge case is relatively small.
|
||||||
MoveChannel(c request.CTX, team *model.Team, channel *model.Channel, user *model.User) *model.AppError
|
MoveChannel(c request.CTX, team *model.Team, channel *model.Channel, user *model.User) *model.AppError
|
||||||
// NewWebConn returns a new WebConn instance.
|
|
||||||
NewWebConn(cfg *platform.WebConnConfig) *platform.WebConn
|
|
||||||
// NotifySessionsExpired is called periodically from the job server to notify any mobile sessions that have expired.
|
// NotifySessionsExpired is called periodically from the job server to notify any mobile sessions that have expired.
|
||||||
NotifySessionsExpired() error
|
NotifySessionsExpired() error
|
||||||
// OverrideIconURLIfEmoji changes the post icon override URL prop, if it has an emoji icon,
|
// OverrideIconURLIfEmoji changes the post icon override URL prop, if it has an emoji icon,
|
||||||
|
|||||||
@@ -12761,23 +12761,6 @@ func (a *OpenTracingAppLayer) NewPluginAPI(c *request.Context, manifest *model.M
|
|||||||
return resultVar0
|
return resultVar0
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *OpenTracingAppLayer) NewWebConn(cfg *platform.WebConnConfig) *platform.WebConn {
|
|
||||||
origCtx := a.ctx
|
|
||||||
span, newCtx := tracing.StartSpanWithParentByContext(a.ctx, "app.NewWebConn")
|
|
||||||
|
|
||||||
a.ctx = newCtx
|
|
||||||
a.app.Srv().Store().SetContext(newCtx)
|
|
||||||
defer func() {
|
|
||||||
a.app.Srv().Store().SetContext(origCtx)
|
|
||||||
a.ctx = origCtx
|
|
||||||
}()
|
|
||||||
|
|
||||||
defer span.Finish()
|
|
||||||
resultVar0 := a.app.NewWebConn(cfg)
|
|
||||||
|
|
||||||
return resultVar0
|
|
||||||
}
|
|
||||||
|
|
||||||
func (a *OpenTracingAppLayer) NotifyAndSetWarnMetricAck(warnMetricId string, sender *model.User, forceAck bool, isBot bool) *model.AppError {
|
func (a *OpenTracingAppLayer) NotifyAndSetWarnMetricAck(warnMetricId string, sender *model.User, forceAck bool, isBot bool) *model.AppError {
|
||||||
origCtx := a.ctx
|
origCtx := a.ctx
|
||||||
span, newCtx := tracing.StartSpanWithParentByContext(a.ctx, "app.NotifyAndSetWarnMetricAck")
|
span, newCtx := tracing.StartSpanWithParentByContext(a.ctx, "app.NotifyAndSetWarnMetricAck")
|
||||||
|
|||||||
@@ -13,8 +13,3 @@ import (
|
|||||||
func (a *App) PopulateWebConnConfig(s *model.Session, cfg *platform.WebConnConfig, seqVal string) (*platform.WebConnConfig, error) {
|
func (a *App) PopulateWebConnConfig(s *model.Session, cfg *platform.WebConnConfig, seqVal string) (*platform.WebConnConfig, error) {
|
||||||
return a.Srv().Platform().PopulateWebConnConfig(s, cfg, seqVal)
|
return a.Srv().Platform().PopulateWebConnConfig(s, cfg, seqVal)
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewWebConn returns a new WebConn instance.
|
|
||||||
func (a *App) NewWebConn(cfg *platform.WebConnConfig) *platform.WebConn {
|
|
||||||
return a.Srv().Platform().NewWebConn(cfg, a, a.ch)
|
|
||||||
}
|
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user