Skip to content

integrate mycelium messaging subsystem #2570

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

Omarabdul3ziz
Copy link
Contributor

@Omarabdul3ziz Omarabdul3ziz commented May 26, 2025

@Omarabdul3ziz Omarabdul3ziz marked this pull request as ready for review June 3, 2025 13:44
@Omarabdul3ziz Omarabdul3ziz requested a review from Copilot June 3, 2025 13:46
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

A PR to integrate the mycelium messaging subsystem by adding a new module and updating configurations and dependencies.

  • Added a new Zinit configuration for the mycelium receiver.
  • Updated dependency versions and introduced new modules in go.mod.
  • Integrated the mycelium receiver module into the CLI command set.

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
qemu/overlay.normal/etc/zinit/myceliumrx.yaml Adds overlay configuration for mycelium receiver
go.mod Updates dependency versions and adds dependencies for messaging
etc/zinit/myceliumrx.yaml Adds a new Zinit service configuration for the mycelium receiver
cmds/zos/main.go Integrates the myceliumrx module into the command modules
cmds/modules/myceliumrx/main.go Implements the mycelium receiver module for handling messaging

}

idStub := stubs.NewIdentityManagerStub(client)
sk := ed25519.PrivateKey(idStub.PrivateKey(cli.Context))
Copy link
Preview

Copilot AI Jun 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The function call uses 'cli.Context' as if it were a context instance. It should likely call the method (for example, cli.Context()) to obtain the proper context object required by idStub.PrivateKey.

Suggested change
sk := ed25519.PrivateKey(idStub.PrivateKey(cli.Context))
sk := ed25519.PrivateKey(idStub.PrivateKey(cli.Context()))

Copilot uses AI. Check for mistakes.

if err != nil {
return fmt.Errorf("failed to get substrate manager: %w", err)
}
ctx := cli.Context
Copy link
Preview

Copilot AI Jun 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The assignment 'ctx := cli.Context' is incorrect as cli.Context is a type instead of the actual context value. The proper pattern is to call the context getter method (e.g., cli.Context()) to retrieve the running context.

Suggested change
ctx := cli.Context
ctx := cli.Context.Context

Copilot uses AI. Check for mistakes.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant