Skip to content

statement-store: build local affinity from a configured source#12316

Open
AndreiEres wants to merge 6 commits into
andrei/explicit-affinity-local-topic-setfrom
ae-explicit-affinity-configured-source
Open

statement-store: build local affinity from a configured source#12316
AndreiEres wants to merge 6 commits into
andrei/explicit-affinity-local-topic-setfrom
ae-explicit-affinity-configured-source

Conversation

@AndreiEres

@AndreiEres AndreiEres commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Part of #11934. Plumb a --statement-affinity-topic CLI flag into ExplicitAffinity as the Configured source. Topics parse through a new impl FromStr for Topic.

#[arg(
long = "statement-affinity-topic",
value_name = "TOPIC",
num_args = 1..,

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.

Does the combination of 1.. here and Vec<_> (instead of Option<Vec<_>>) allow not specifying the argument at all? 🤔

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Not necessary here, removed. IIUC we receive an empty vec if nothing was provided

@paritytech-workflow-stopper

Copy link
Copy Markdown

All GitHub workflows were cancelled due to failure one of the required jobs.
Failed workflow url: https://github.com/paritytech/polkadot-sdk/actions/runs/27264159179
Failed job name: check-runtime-compatibility

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.

3 participants