diff options
author | Corey Hulen <corey@hulen.com> | 2017-09-05 07:58:47 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-05 07:58:47 -0700 |
commit | d6383643cb9f60e0429d09c1d363b7781da15e47 (patch) | |
tree | 57c2cebd71930e0efa2be4c74ea24715871fa02d /model | |
parent | 7843dc3cfa7e99db5b6c89698ef09dbc7b6138ea (diff) | |
download | chat-d6383643cb9f60e0429d09c1d363b7781da15e47.tar.gz chat-d6383643cb9f60e0429d09c1d363b7781da15e47.tar.bz2 chat-d6383643cb9f60e0429d09c1d363b7781da15e47.zip |
PLT-6226 fixing race in IsAuth (#7296)
* Fixing race in isAuth function
* PLT-6226 fixing race in IsAuth
* Moving int64 to top so it's aligned
* Adding comment and fixing asymmetric call
Diffstat (limited to 'model')
-rw-r--r-- | model/session.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/model/session.go b/model/session.go index 960c18cbf..704af067c 100644 --- a/model/session.go +++ b/model/session.go @@ -37,6 +37,11 @@ type Session struct { TeamMembers []*TeamMember `json:"team_members" db:"-"` } +func (me *Session) DeepCopy() *Session { + copy := *me + return © +} + func (me *Session) ToJson() string { b, err := json.Marshal(me) if err != nil { |