Skip to content

deprecate channels_sv2::server::jobs::job_store::JobStore#2190

Open
plebhash wants to merge 2 commits into
stratum-mining:mainfrom
plebhash:2026-06-12-cleanup-job-store
Open

deprecate channels_sv2::server::jobs::job_store::JobStore#2190
plebhash wants to merge 2 commits into
stratum-mining:mainfrom
plebhash:2026-06-12-cleanup-job-store

Conversation

@plebhash

@plebhash plebhash commented Jun 12, 2026

Copy link
Copy Markdown
Member

plebhash added 2 commits June 13, 2026 14:15
- make server Extended/Standard/Group concrete and internalize job store construction
- remove the public JobStore trait and keep `server::jobs::job_store` crate-private with inherent methods
- rename the internal store type to JobStore and update server imports, tests, rustdocs, and crate docs

Rationale:
- complete issue stratum-mining#2181 by removing an overengineered public abstraction while keeping a focused internal store
- switch JobStore getter signatures to return references instead of owned values
- update server extended/standard/group getters and rustdocs to match borrowed access
- adjust server tests to clone explicitly only when ownership is needed

Rationale:
- eliminate implicit cloning in hot paths and align server-side getter semantics with issue stratum-mining#2181 guidance
@plebhash plebhash force-pushed the 2026-06-12-cleanup-job-store branch from 859beae to 7cd9430 Compare June 13, 2026 17:15
@plebhash plebhash marked this pull request as ready for review June 13, 2026 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

need to deprecate channels_sv2::server::jobs::job_store::JobStore

1 participant