From e5d762422564220a35fe50ab9356a01186b46be8 Mon Sep 17 00:00:00 2001
From: capossele <angelocapossele@gmail.com>
Date: Thu, 23 Apr 2020 17:21:31 +0100
Subject: [PATCH] :rotating_light: Fixes linter warnings

---
 plugins/drng/drng.go       |  1 +
 plugins/drng/parameters.go | 10 +++++++---
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/plugins/drng/drng.go b/plugins/drng/drng.go
index a3a014b2..6c879d60 100644
--- a/plugins/drng/drng.go
+++ b/plugins/drng/drng.go
@@ -49,6 +49,7 @@ func configureDRNG() *drng.DRNG {
 	return drng.New(state.SetCommittee(committeeConf))
 }
 
+// Instance returns the DRNG instance.
 func Instance() *drng.DRNG {
 	once.Do(func() { instance = configureDRNG() })
 	return instance
diff --git a/plugins/drng/parameters.go b/plugins/drng/parameters.go
index d0c1193d..07a4e8ac 100644
--- a/plugins/drng/parameters.go
+++ b/plugins/drng/parameters.go
@@ -5,10 +5,14 @@ import (
 )
 
 const (
-	CfgDRNGInstanceID        = "drng.instanceId"
-	CfgDRNGThreshold         = "drng.threshold"
+	// CfgDRNGInstanceID defines the config flag of the DRNG instanceID.
+	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"
-	CfgDRNGCommitteeMembers  = "drng.committeeMembers"
+	// CfgDRNGCommitteeMembers defines the config flag of the DRNG committee members identities.
+	CfgDRNGCommitteeMembers = "drng.committeeMembers"
 )
 
 func init() {
-- 
GitLab