Use sync.Mutex as value

This commit is contained in:
max furman 2020-10-20 17:56:15 -07:00
parent 272cce522e
commit 4c48048615

View file

@ -18,7 +18,7 @@ import (
var defaultOrderExpiry = time.Hour * 24
// Mutex for locking ordersByAccount index operations.
var ordersByAccountMux = &sync.Mutex{}
var ordersByAccountMux sync.Mutex
// Order contains order metadata for the ACME protocol order type.
type Order struct {