From f04dda8941131534448ed8be86304e3dbce918dc Mon Sep 17 00:00:00 2001 From: capossele <angelocapossele@gmail.com> Date: Mon, 9 Dec 2019 10:56:21 +0000 Subject: [PATCH] :art: removes commented code --- main.go | 10 ---------- plugins/statusscreen/logger.go | 5 +++-- plugins/statusscreen/status_message.go | 3 ++- plugins/statusscreen/statusscreen.go | 2 +- plugins/statusscreen/ui_log_entry.go | 2 +- 5 files changed, 7 insertions(+), 15 deletions(-) diff --git a/main.go b/main.go index 1f8fa01c..cb0803bb 100644 --- a/main.go +++ b/main.go @@ -23,20 +23,10 @@ import ( ) func main() { - // go func() { - // if err := profiler.Start(profiler.Config{ - // Service: "race-service", - // ServiceVersion: "1.0", - // ProjectID: "premium-canyon-232915", // optional on GCP - // }); err != nil { - // log.Fatalf("Cannot start the profiler: %v", err) - // } - // }() node.Run( cli.PLUGIN, autopeering.PLUGIN, gossip.PLUGIN, - //gossip_on_solidification.PLUGIN, tangle.PLUGIN, bundleprocessor.PLUGIN, analysis.PLUGIN, diff --git a/plugins/statusscreen/logger.go b/plugins/statusscreen/logger.go index a32db7fd..871472bf 100644 --- a/plugins/statusscreen/logger.go +++ b/plugins/statusscreen/logger.go @@ -1,11 +1,12 @@ package statusscreen import ( - "github.com/iotaledger/hive.go/logger" "time" + + "github.com/iotaledger/hive.go/logger" ) -func storeStatusMessage(logLevel logger.LogLevel, prefix string, message string, ) { +func storeStatusMessage(logLevel logger.LogLevel, prefix string, message string) { mutex.Lock() defer mutex.Unlock() messageLog = append(messageLog, &StatusMessage{ diff --git a/plugins/statusscreen/status_message.go b/plugins/statusscreen/status_message.go index 6ac60673..96ae34ee 100644 --- a/plugins/statusscreen/status_message.go +++ b/plugins/statusscreen/status_message.go @@ -1,8 +1,9 @@ package statusscreen import ( - "github.com/iotaledger/hive.go/logger" "time" + + "github.com/iotaledger/hive.go/logger" ) type StatusMessage struct { diff --git a/plugins/statusscreen/statusscreen.go b/plugins/statusscreen/statusscreen.go index 93db9a19..575a1b3b 100644 --- a/plugins/statusscreen/statusscreen.go +++ b/plugins/statusscreen/statusscreen.go @@ -1,7 +1,6 @@ package statusscreen import ( - "github.com/iotaledger/hive.go/logger" "io/ioutil" "os" "sync" @@ -10,6 +9,7 @@ import ( "github.com/gdamore/tcell" "github.com/iotaledger/hive.go/daemon" "github.com/iotaledger/hive.go/events" + "github.com/iotaledger/hive.go/logger" "github.com/iotaledger/hive.go/node" "github.com/rivo/tview" "golang.org/x/crypto/ssh/terminal" diff --git a/plugins/statusscreen/ui_log_entry.go b/plugins/statusscreen/ui_log_entry.go index 168d6d1f..fc8db3a7 100644 --- a/plugins/statusscreen/ui_log_entry.go +++ b/plugins/statusscreen/ui_log_entry.go @@ -2,9 +2,9 @@ package statusscreen import ( "fmt" - "github.com/iotaledger/hive.go/logger" "github.com/gdamore/tcell" + "github.com/iotaledger/hive.go/logger" "github.com/rivo/tview" ) -- GitLab