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

Renamed add_children to add_child since it adds only one child #6838

Merged
merged 3 commits into from
Aug 7, 2020
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion client/service/src/task_manager/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ impl TaskManager {
/// Register another TaskManager to terminate and gracefully shutdown when the parent
/// terminates and gracefully shutdown. Also ends the parent `future()` if a child's essential
/// task fails. (But don't end the parent if a child's normal task fails.)
pub fn add_children(&mut self, child: TaskManager) {
pub fn add_child(&mut self, child: TaskManager) {
self.children.push(child);
}
}
Expand Down