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
Этот коммит содержится в:
Corey Hulen
2017-09-05 07:58:47 -07:00
коммит произвёл GitHub
родитель 7843dc3cfa
Коммит d6383643cb
4 изменённых файлов: 71 добавлений и 31 удалений

Просмотреть файл

@@ -37,6 +37,11 @@ type Session struct {
TeamMembers []*TeamMember `json:"team_members" db:"-"`
}
func (me *Session) DeepCopy() *Session {
copy := *me
return &copy
}
func (me *Session) ToJson() string {
b, err := json.Marshal(me)
if err != nil {