Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

availability recovery type name clarifications #4203

Merged
merged 9 commits into from
Nov 8, 2021

Conversation

drahnr
Copy link
Contributor

@drahnr drahnr commented Nov 1, 2021

It took some significant time to understand what the Interactions really meant from the code.

This PR renames them and synchronizes the implementation with our guide, and replaces Interaction by DataRecoveryTask et.al.

@drahnr drahnr self-assigned this Nov 1, 2021
@github-actions github-actions bot added the A0-please_review Pull request needs code review. label Nov 1, 2021
@drahnr drahnr added C1-low PR touches the given topic and has a low impact on builders. I7-documentation Documentation needs fixing, improving or augmenting. I8-refactor Code needs refactoring. labels Nov 1, 2021
@drahnr drahnr changed the title availability recovery availability recovery type name clarifications Nov 1, 2021
@drahnr drahnr added the B0-silent Changes should not be mentioned in any release notes label Nov 4, 2021
node/network/availability-recovery/src/lib.rs Outdated Show resolved Hide resolved
node/network/availability-recovery/src/lib.rs Outdated Show resolved Hide resolved
Comment on lines -98 to -101
#### `FromInteraction::Concluded`

1. Load the entry from the `interactions` map. It should always exist, if not for logic errors. Send the result to each member of `awaiting`.
1. Add the entry to the `availability_lru`.
Copy link
Member

Choose a reason for hiding this comment

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

This logic is still there when remote is ready.

Copy link
Contributor Author

@drahnr drahnr Nov 4, 2021

Choose a reason for hiding this comment

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

The whole part regarding how this is handled is rather abstract in the guide compared to the actual impl. Either this needs a revamp (the guide, in a separate issue) or we agree that details like these don't necessarily belong into the impl guide, since we are entering a more stable dev cycle.

@drahnr
Copy link
Contributor Author

drahnr commented Nov 8, 2021

bot merge

@paritytech-processbot paritytech-processbot bot merged commit 547bc8a into master Nov 8, 2021
@paritytech-processbot paritytech-processbot bot deleted the bernhard-minor-clarifications branch November 8, 2021 13:43
ordian added a commit that referenced this pull request Nov 12, 2021
* master: (71 commits)
  Remove light client companion (#4191)
  Enable full use of pallet-bags-list in westend and kusama runtimes (#4195)
  collator-protocol: do not connect to the next group (#4261)
  Per subsystem CPU usage tracking (#4239)
  CI: chore (#3957)
  Companion – Update jsonrpsee to 0.4.1 (#4256)
  Add more XCM tracing (#4211)
  Update dependencies for latest substrate master (#4258)
  Bump mick-jaeger from 0.1.4 to 0.1.6 (#4249)
  Bump dlmalloc from 0.2.2 to 0.2.3 (#4250)
  Bump libc from 0.2.106 to 0.2.107 (#4235)
  Bump paste from 1.0.5 to 1.0.6 (#4244)
  Bump serde_json from 1.0.68 to 1.0.69 (#4236)
  Update `wasmtime` and related dependencies (companion for Substrate#10149) (#4210)
  update cargo lock to unbreak dep of a dep (#4245)
  Increase maximum chunk size to adjust for small networks. (#4220)
  availability recovery type name clarifications (#4203)
  Update `bridge/` codeowners (#4222)
  fix(staking miner): use `StorageKey` in getStorage (#4231)
  Change path for the tests to master (#4223)
  ...
drahnr added a commit that referenced this pull request Nov 15, 2021
* minor changes

* fmt

* rename to expressive types

* chore: fixup

* chore: remove `Data` prefixes

* address review comments

* guide items

* sourcer -> source, add `FromValdiators` suffix
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. I7-documentation Documentation needs fixing, improving or augmenting. I8-refactor Code needs refactoring.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants