Przeglądaj źródła

Use sync.Mutex as value

max furman 6 lat temu
rodzic
commit
4c48048615
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      acme/order.go

+ 1 - 1
acme/order.go

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