Skip to content
Snippets Groups Projects
Commit e5d76242 authored by capossele's avatar capossele
Browse files

:rotating_light: Fixes linter warnings

parent fa07a0cf
No related branches found
No related tags found
No related merge requests found
...@@ -49,6 +49,7 @@ func configureDRNG() *drng.DRNG { ...@@ -49,6 +49,7 @@ func configureDRNG() *drng.DRNG {
return drng.New(state.SetCommittee(committeeConf)) return drng.New(state.SetCommittee(committeeConf))
} }
// Instance returns the DRNG instance.
func Instance() *drng.DRNG { func Instance() *drng.DRNG {
once.Do(func() { instance = configureDRNG() }) once.Do(func() { instance = configureDRNG() })
return instance return instance
......
...@@ -5,10 +5,14 @@ import ( ...@@ -5,10 +5,14 @@ import (
) )
const ( const (
CfgDRNGInstanceID = "drng.instanceId" // CfgDRNGInstanceID defines the config flag of the DRNG instanceID.
CfgDRNGThreshold = "drng.threshold" CfgDRNGInstanceID = "drng.instanceId"
// CfgDRNGThreshold defines the config flag of the DRNG threshold.
CfgDRNGThreshold = "drng.threshold"
// CfgDRNGDistributedPubKey defines the config flag of the DRNG distributed Public Key.
CfgDRNGDistributedPubKey = "drng.distributedPubKey" CfgDRNGDistributedPubKey = "drng.distributedPubKey"
CfgDRNGCommitteeMembers = "drng.committeeMembers" // CfgDRNGCommitteeMembers defines the config flag of the DRNG committee members identities.
CfgDRNGCommitteeMembers = "drng.committeeMembers"
) )
func init() { func init() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment