- 13 Jul, 2020 6 commits
-
-
Peter Goodspeed-Niklaus authored
This works within `util.rs`, but fails in `core/backing/src/lib.rs`, because we don't actually create the struct soon enough. Continuing down this path would imply substantial rewriting.
-
Peter Goodspeed-Niklaus authored
-
Peter Goodspeed-Niklaus authored
-
Peter Goodspeed-Niklaus authored
-
Peter Goodspeed-Niklaus authored
This turns out to be relatively complicated and requires some unsafe code, so we'll want either detailed review, or to choose to revert this commit.
-
Peter Goodspeed-Niklaus authored
-
- 10 Jul, 2020 16 commits
-
-
Peter Goodspeed-Niklaus authored
-
Peter Goodspeed-Niklaus authored
-
Peter Goodspeed-Niklaus authored
-
Peter Goodspeed-Niklaus authored
-
Peter Goodspeed-Niklaus authored
-
Peter Goodspeed-Niklaus authored
-
Peter Goodspeed-Niklaus authored
-
Peter Goodspeed-Niklaus authored
This means that the work of implementing a subsystem boils down to implementing the job, and then writing an appropriate type definition, i.e. pub type CandidateBackingSubsystem<Spawner, Context> = util::JobManager<Spawner, Context, CandidateBackingJob>;
-
Peter Goodspeed-Niklaus authored
-
Peter Goodspeed-Niklaus authored
-
Peter Goodspeed-Niklaus authored
-
Peter Goodspeed-Niklaus authored
This struct can be constructed when the local node is a validator; the constructor fails otherwise. It stores a bit of local data, and provides some utility methods.
-
Peter Goodspeed-Niklaus authored
-
Peter Goodspeed-Niklaus authored
The point of making a sub-crate is to ensure that only the necessary parts of a program get compiled; if a dependent package needed only subsystem-util, and not subsystem, then subsystem wouldn't need to be compiled. However, that will never happen: subsystem-util depends on subsystem::messages, so subsystem will always be compiled. Therefore, it makes more sense to add it as a module in the existing crate than as a new and distinct crate.
-
Peter Goodspeed-Niklaus authored
-
Peter Goodspeed-Niklaus authored
Start by moving the JobCanceler here.
-