Skip to content
Snippets Groups Projects
Commit 5e1a004a authored by Jake Taylor's avatar Jake Taylor
Browse files

fix

parent b14efc6d
No related branches found
No related tags found
4 merge requests!510Release,!419rewrote the health tracker to both consider if there are waiting rounds and...,!371[Channel RSAtoPrivate] Implement Reverse Asymmetric in Client/Broadcast,!340Project/channels
...@@ -22,7 +22,7 @@ import ( ...@@ -22,7 +22,7 @@ import (
const ( const (
registrationDiskKey = "registrationDiskKey" registrationDiskKey = "registrationDiskKey"
registrationDiskVersion = 0 registrationDiskVersion = 0
graceDuration time.Duration = time.Hour graceDuration = time.Hour
) )
var startChannelNameServiceOnce sync.Once var startChannelNameServiceOnce sync.Once
...@@ -50,8 +50,7 @@ func saveRegistrationDisk(kv *versioned.KV, reg registrationDisk) error { ...@@ -50,8 +50,7 @@ func saveRegistrationDisk(kv *versioned.KV, reg registrationDisk) error {
Timestamp: time.Now(), Timestamp: time.Now(),
Data: regBytes, Data: regBytes,
} }
kv.Set(registrationDiskKey, registrationDiskVersion, &obj) return kv.Set(registrationDiskKey, &obj)
return nil
} }
// registrationDisk is used to encapsulate the channel user's key pair, // registrationDisk is used to encapsulate the channel user's key pair,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment