Skip to content
This repository was archived by the owner on Feb 8, 2026. It is now read-only.

reshare: use newer worker implementation#79

Merged
johnnyluo merged 6 commits into
mainfrom
feat/reshare
Jun 10, 2025
Merged

reshare: use newer worker implementation#79
johnnyluo merged 6 commits into
mainfrom
feat/reshare

Conversation

@RaghavSood

@RaghavSood RaghavSood commented Jun 1, 2025

Copy link
Copy Markdown
Contributor

Sister PR to vultisig/verifier#122

Implements the changes necessary to get reshare to work

Summary by CodeRabbit

  • Chores

    • Updated an internal dependency to a newer version.
  • Refactor

    • Removed plugin-related functionality.

Copilot AI review requested due to automatic review settings June 1, 2025 20:53
@coderabbitai

coderabbitai Bot commented Jun 1, 2025

Copy link
Copy Markdown
Contributor

Walkthrough

The update changes the version of the github.com/vultisig/verifier dependency in the go.mod file and removes the Plugin interface definition from the plugin/plugin.go file. No other files or exported entities are modified.

Changes

File(s) Change Summary
go.mod Updated github.com/vultisig/verifier dependency to a newer commit.
plugin/plugin.go Deleted the file containing the definition of the Plugin interface and its associated method signatures.

Poem

A hop, a skip, a version jump,
Old plugins gone with a gentle thump.
Dependencies fresh as morning dew,
The codebase hops to something new.
With every change, the garden grows,
Where rabbits code, the future glows! 🐇✨

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 golangci-lint (1.64.8)

level=warning msg="[runner] Can't run linter goanalysis_metalinter: buildir: failed to load package session: could not load export data: no export data for "github.com/vultisig/go-wrappers/go-dkls/sessions""
level=error msg="Running error: can't run linter goanalysis_metalinter\nbuildir: failed to load package session: could not load export data: no export data for "github.com/vultisig/go-wrappers/go-dkls/sessions""


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 79b4cb2 and e6a5daf.

⛔ Files ignored due to path filters (1)
  • go.sum is excluded by !**/*.sum
📒 Files selected for processing (1)
  • go.mod (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • go.mod
⏰ Context from checks skipped due to timeout of 90000ms (2)
  • GitHub Check: build
  • GitHub Check: migration-test

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This PR implements updates to use the newer worker implementation for reshare functionality. Key changes include:

  • Updating dependency versions in go.mod for recipes and verifier.
  • Inserting a minor formatting change in the worker's main function.
  • Renaming configuration keys in the DCAWorkerConfig struct to better reflect their purpose.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
go.mod Dependency versions for recipes and verifier updated.
cmd/dca/worker/main.go Added an extra newline (formatting adjustment).
cmd/dca/worker/config.go Updated mapstructure keys for BlockStorage and VaultServiceConfig.
Comments suppressed due to low confidence (2)

cmd/dca/worker/config.go:16

  • Renaming the mapstructure key for VaultServiceConfig requires updating the related configuration sources. Verify that these changes are consistently applied across all configuration files and documentation.
VaultServiceConfig vault.Config `mapstructure:"vault_service_config" json:"vault_service,omitempty"`

cmd/dca/worker/config.go:15

  • Renaming the mapstructure key for BlockStorage may break existing configuration files. Please ensure that the corresponding configuration and documentation are updated accordingly.
BlockStorage       vault.BlockStorageConfig `mapstructure:"block_storage_config" json:"block_storage,omitempty"`

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (4)
go.mod (1)

22-22: Run go mod tidy
Ensure go.sum is updated and unused modules are pruned by running:

go mod tidy
cmd/dca/worker/main.go (1)

24-27: Improve error wrapping consistency
At line 26, panic(fmt.Sprintf(...)) discards the original error type. Use fmt.Errorf with %w to wrap errors:

- panic(fmt.Sprintf("failed to initialize vault storage: %v", err))
+ panic(fmt.Errorf("failed to initialize vault storage: %w", err))
cmd/dca/worker/config.go (2)

15-16: Consider aligning JSON tags with new config keys
If this struct is serialized to JSON, you may want to update the json tags to include _config for consistency:

- BlockStorage       vault.BlockStorageConfig `mapstructure:"block_storage_config" json:"block_storage,omitempty"`
- VaultServiceConfig vault.Config             `mapstructure:"vault_service_config" json:"vault_service,omitempty"`
+ BlockStorage       vault.BlockStorageConfig `mapstructure:"block_storage_config" json:"block_storage_config,omitempty"`
+ VaultServiceConfig vault.Config             `mapstructure:"vault_service_config" json:"vault_service_config,omitempty"`

37-39: Fix error message grammar
The message fail to reading config file is ungrammatical. Consider:

- return nil, fmt.Errorf("fail to reading config file, %w", err)
+ return nil, fmt.Errorf("failed to read config file: %w", err)
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 96a5a80 and 87a2e1c.

⛔ Files ignored due to path filters (1)
  • go.sum is excluded by !**/*.sum
📒 Files selected for processing (3)
  • cmd/dca/worker/config.go (1 hunks)
  • cmd/dca/worker/main.go (1 hunks)
  • go.mod (1 hunks)
🔇 Additional comments (3)
go.mod (1)

22-22: Approve dependency update
Version bump of github.com/vultisig/verifier aligns with the related changes in the sister PR.

cmd/dca/worker/main.go (1)

48-48: LGTM: formatting only
The added blank line between server initialization and vault service creation improves readability and has no functional impact.

cmd/dca/worker/config.go (1)

15-16: Approve updated mapstructure tags
The block_storage_config and vault_service_config tags align with the updated naming conventions for the DCA worker configuration.

Comment thread cmd/dca/worker/main.go Outdated
Comment thread cmd/dca/worker/config.go Outdated
johnnyluo
johnnyluo previously approved these changes Jun 10, 2025

@johnnyluo johnnyluo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@johnnyluo johnnyluo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@johnnyluo
johnnyluo merged commit 8d05209 into main Jun 10, 2025
3 checks passed
@johnnyluo
johnnyluo deleted the feat/reshare branch June 10, 2025 21:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants