Synchronize user.certificate access

This commit is contained in:
Ken-Håvard Lieng 2016-01-12 00:32:40 +01:00
parent 67b83fa3d6
commit 81500cc89e
4 changed files with 16 additions and 8 deletions

View file

@ -41,11 +41,11 @@ type Message struct {
}
type User struct {
UUID string
Certificate *tls.Certificate `json:"-"`
UUID string
messageLog *bolt.DB
messageIndex bleve.Index
certificate *tls.Certificate
lock sync.Mutex
}