Skip to content

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

Merged
plebhash merged 2 commits into
stratum-mining:mainfrom
plebhash:2026-06-12-cleanup-job-store
Jun 16, 2026
Merged

deprecate channels_sv2::server::jobs::job_store::JobStore#2190
plebhash merged 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 plebhash force-pushed the 2026-06-12-cleanup-job-store branch 10 times, most recently 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

@Shourya742 Shourya742 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Pretty smooth changes. Few suggestions rest looks good.

Comment thread sv2/channels-sv2/src/server/jobs/job_store.rs Outdated
Comment thread sv2/channels-sv2/src/server/jobs/job_store.rs Outdated
Comment thread sv2/channels-sv2/src/server/jobs/job_store.rs Outdated

@Shourya742 Shourya742 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

ACK. Nice cleanup.

@plebhash plebhash force-pushed the 2026-06-12-cleanup-job-store branch from 7cd9430 to ea5360a Compare June 15, 2026 19:45
plebhash added 2 commits June 16, 2026 15:03
- 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 ea5360a to 41353f6 Compare June 16, 2026 18:03
@plebhash plebhash merged commit bec79e1 into stratum-mining:main Jun 16, 2026
14 checks passed
@plebhash plebhash deleted the 2026-06-12-cleanup-job-store branch June 16, 2026 18:41
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

3 participants