We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d329ac commit 3d7e364Copy full SHA for 3d7e364
1 file changed
backend/cmd/main.go
@@ -13,7 +13,6 @@ import (
13
"runtime"
14
"runtime/pprof"
15
"strings"
16
- "time"
17
18
blcuPackage "github.com/HyperloopUPV-H8/h9-backend/internal/blcu"
19
"github.com/HyperloopUPV-H8/h9-backend/internal/common"
@@ -164,14 +163,11 @@ func main() {
164
163
165
transp := transport.NewTransport()
166
167
- prev := time.Now()
168
transp.SetAPI(&TransportAPI{
169
OnNotification: func(notification abstraction.TransportNotification) {
170
packet := notification.(transport.PacketNotification)
171
switch p := packet.Packet.(type) {
172
case *data.Packet:
173
- fmt.Println(time.Since(prev))
174
- prev = time.Now()
175
if _, ok := orders[p.Id()]; ok {
176
loggerHandler.Log(order_logger.LoggableOrder(*p))
177
return
0 commit comments