diff options
author | Thomas Balthazar <tbalthazar@users.noreply.github.com> | 2016-05-18 22:34:31 +0200 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2016-05-18 16:34:31 -0400 |
commit | 55f6a0b21c46f77fb33e1af29c5960298bdb6907 (patch) | |
tree | a1af9535800ea63fac38f31be18051adb032b2fb /api/user.go | |
parent | 02576f3d597b3c419df20f2a50aa6e587f1d98bb (diff) | |
download | chat-55f6a0b21c46f77fb33e1af29c5960298bdb6907.tar.gz chat-55f6a0b21c46f77fb33e1af29c5960298bdb6907.tar.bz2 chat-55f6a0b21c46f77fb33e1af29c5960298bdb6907.zip |
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
Diffstat (limited to 'api/user.go')
-rw-r--r-- | api/user.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/user.go b/api/user.go index 34e6c01af..89ac1c837 100644 --- a/api/user.go +++ b/api/user.go @@ -260,7 +260,7 @@ func CreateUser(user *model.User) (*model.User, *model.AppError) { ruser.Sanitize(map[string]bool{}) // This message goes to every channel, so the channelId is irrelevant - PublishAndForget(model.NewMessage("", "", ruser.Id, model.ACTION_NEW_USER)) + go Publish(model.NewMessage("", "", ruser.Id, model.ACTION_NEW_USER)) return ruser, nil } |