Reworking in module definition

This commit is contained in:
Héctor Hurtado
2019-10-08 12:02:46 +02:00
parent 73e05afee3
commit fe7d962581
3 changed files with 25 additions and 19 deletions
+3 -1
View File
@@ -4,6 +4,8 @@ import (
"fmt"
"net/url"
"strconv"
"github.com/BBVA/kapow/internal/server/control"
)
// StartServer Starts one instance of each server in a goroutine and remains listening on a channel for trace events generated by them
@@ -24,7 +26,7 @@ func StartServer(bindAddr, certfile, keyfile string, interactive bool) error {
dataBindAddr := fmt.Sprintf("%s:%d", userBindAddr.Host, userPort+2)
fmt.Printf("User server bind address: %s, Control server bind address: %s, Data server bind address: %s", bindAddr, ctrlBindAddr, dataBindAddr)
//go ctrlServer.Start(traceChannel)
go control.Run(ctrlBindAddr)
//go dataServer.Start(traceChannel)
//go ctrlServer.Start(traceChannel)