Synchronize user.certificate access
This commit is contained in:
parent
67b83fa3d6
commit
81500cc89e
4 changed files with 16 additions and 8 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue