Skip to content
Snippets Groups Projects
Unverified Commit 4d2fe754 authored by capossele's avatar capossele
Browse files

:bug: Move conn initialization

parent a49cac94
No related branches found
No related tags found
No related merge requests found
......@@ -32,14 +32,14 @@ func init() {
var (
// Plugin is the plugin instance of the analysis client plugin.
Plugin = node.NewPlugin(PluginName, node.Enabled, run)
conn = NewConnector("tcp", config.Node.GetString(CfgServerAddress))
log *logger.Logger
conn *Connector
log *logger.Logger
)
func run(_ *node.Plugin) {
finalized = make(map[string]vote.Opinion)
log = logger.NewLogger(PluginName)
conn = NewConnector("tcp", config.Node.GetString(CfgServerAddress))
if err := daemon.BackgroundWorker(PluginName, func(shutdownSignal <-chan struct{}) {
conn.Start()
......
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