diff --git a/auth/store/receivedRequest.go b/auth/store/receivedRequest.go index 1c2a6e8e95c03fbe6c5d24990772cad64db596e7..63b338269f666f816b7d40e65db21417e7331b83 100644 --- a/auth/store/receivedRequest.go +++ b/auth/store/receivedRequest.go @@ -33,7 +33,7 @@ type ReceivedRequest struct { round rounds.Round //lock to make sure only one operator at a time - mux *sync.Mutex + mux sync.Mutex } func newReceivedRequest(kv *versioned.KV, c contact.Contact, @@ -60,7 +60,6 @@ func newReceivedRequest(kv *versioned.KV, c contact.Contact, partner: c, theirSidHPubKeyA: key, round: round, - mux: &sync.Mutex{}, } } diff --git a/auth/store/store.go b/auth/store/store.go index 25e22d234ee81639b4c60292a3cf687a56f06424..e2238d7c2b211dd3923746025ec8488aecf5d493 100644 --- a/auth/store/store.go +++ b/auth/store/store.go @@ -23,8 +23,6 @@ import ( "gitlab.com/xx_network/primitives/netTime" ) -const NoRequest = "Request Not Found" - const storePrefix = "requestMap" const requestMapKey = "map"