From 7272908484560465e7ecbd32b632e6acfa6d29bb Mon Sep 17 00:00:00 2001 From: Enghin Omer Date: Thu, 7 May 2020 17:20:29 +0300 Subject: [PATCH] [IPFS-170] - Removed unused constant --- plugin/datadog.go | 2 -- plugin/logger.go | 8 ++++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/plugin/datadog.go b/plugin/datadog.go index bf7e0be..d24ee8b 100644 --- a/plugin/datadog.go +++ b/plugin/datadog.go @@ -22,8 +22,6 @@ var _ plugin.PluginTracer = &DatadogPlugin{} var tracerName = "go-ipfs" -const tracerNameKey = "IpfsTracerName" - // "Plugins": { // "datadog": { // "Config": { diff --git a/plugin/logger.go b/plugin/logger.go index c896777..37d3eb9 100644 --- a/plugin/logger.go +++ b/plugin/logger.go @@ -9,10 +9,6 @@ import ( "github.com/ipfs/go-ipfs/plugin" ) -// LoggerPlugin controls which ipfs subsystems loggers are enabled -// These subsystems are defined in ipfs config Plugins -type LoggerPlugin struct{} - var _ plugin.Plugin = &LoggerPlugin{} // "Plugins": { @@ -32,6 +28,10 @@ type loggerConfig struct { LogLevel string } +// LoggerPlugin controls which ipfs subsystems loggers are enabled +// These subsystems are defined in ipfs config Plugins +type LoggerPlugin struct{} + func (l LoggerPlugin) Name() string { return "logger" }