Checkpoint
Some checks failed
Test and build / Test and lint (push) Failing after 36s
Test and build / Build collector (push) Failing after 43s
Test and build / Build receiver (push) Failing after 42s

This commit is contained in:
2026-03-05 15:38:18 +01:00
parent 3106b2cf45
commit 13afa08e8a
108 changed files with 19509 additions and 729 deletions

View File

@@ -2,6 +2,7 @@ package main
import (
"context"
"encoding/base64"
"github.com/urfave/cli/v3"
@@ -48,6 +49,9 @@ func runMeshCore(ctx context.Context, command *cli.Command) error {
return err
}
// Node id
id := base64.RawURLEncoding.EncodeToString([]byte(info.Name))
// Trace scheduler
//go receiver.RunTraces()
@@ -68,7 +72,7 @@ func runMeshCore(ctx context.Context, command *cli.Command) error {
payloadType,
len(packet.Raw))
}
if err = broker.PublishPacket("meshcore/packet", packet); err != nil {
if err = broker.PublishPacket("meshcore/packet/"+id, packet); err != nil {
logger.Errorf("receiver: failed to publish packet: %v", err)
}
}