Added tracer dependency into hypertextTransferProtocolStrategy.go

This commit is contained in:
Mario
2022-05-09 23:21:14 +02:00
parent 1d04476935
commit e1a1f20e6c

View File

@ -2,6 +2,7 @@ package protocols
import ( import (
"beelzebub/parser" "beelzebub/parser"
"beelzebub/tracer"
"fmt" "fmt"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"io" "io"
@ -15,7 +16,7 @@ type HypertextTransferProtocolStrategy struct {
beelzebubServiceConfiguration parser.BeelzebubServiceConfiguration 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.beelzebubServiceConfiguration = beelzebubServiceConfiguration
httpStrategy.serverMux = http.NewServeMux() httpStrategy.serverMux = http.NewServeMux()