Move away from the "andForget" style of function (#3046)
This is the second and last part of the refactoring. First part is documented here: https://github.com/mattermost/platform/pull/3043
Этот коммит содержится в:
коммит произвёл
Harrison Healey
родитель
02576f3d59
Коммит
55f6a0b21c
@@ -4,11 +4,12 @@
|
||||
package api
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
l4g "github.com/alecthomas/log4go"
|
||||
"github.com/gorilla/websocket"
|
||||
"github.com/mattermost/platform/model"
|
||||
"github.com/mattermost/platform/utils"
|
||||
"time"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -77,7 +78,7 @@ func (c *WebConn) readPump() {
|
||||
return
|
||||
} else {
|
||||
msg.UserId = c.UserId
|
||||
PublishAndForget(&msg)
|
||||
go Publish(&msg)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user