From e1a1f20e6cdce7909855eb208813ece057502cbc Mon Sep 17 00:00:00 2001 From: Mario Date: Mon, 9 May 2022 23:21:14 +0200 Subject: [PATCH] Added tracer dependency into hypertextTransferProtocolStrategy.go --- protocols/hypertextTransferProtocolStrategy.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/protocols/hypertextTransferProtocolStrategy.go b/protocols/hypertextTransferProtocolStrategy.go index a5fca0e..bfd7f86 100644 --- a/protocols/hypertextTransferProtocolStrategy.go +++ b/protocols/hypertextTransferProtocolStrategy.go @@ -2,6 +2,7 @@ package protocols import ( "beelzebub/parser" + "beelzebub/tracer" "fmt" log "github.com/sirupsen/logrus" "io" @@ -15,7 +16,7 @@ type HypertextTransferProtocolStrategy struct { beelzebubServiceConfiguration parser.BeelzebubServiceConfiguration } -func (httpStrategy HypertextTransferProtocolStrategy) Init(beelzebubServiceConfiguration parser.BeelzebubServiceConfiguration) error { +func (httpStrategy HypertextTransferProtocolStrategy) Init(beelzebubServiceConfiguration parser.BeelzebubServiceConfiguration, tr tracer.Tracer) error { httpStrategy.beelzebubServiceConfiguration = beelzebubServiceConfiguration httpStrategy.serverMux = http.NewServeMux()