Checkpoint
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user