-
Notifications
You must be signed in to change notification settings - Fork 18
integrate mycelium messaging subsystem #2570
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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)) |
There was a problem hiding this comment.
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.
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 |
There was a problem hiding this comment.
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.
ctx := cli.Context | |
ctx := cli.Context.Context |
Copilot uses AI. Check for mistakes.
waiting: