Skip to content

Commit 9ac5a43

Browse files
committed
core: Simplify the return type of SubgraphRunner.run
1 parent b94ba9d commit 9ac5a43

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/subgraph/runner.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ where
105105
self.run_inner(break_on_restart).await
106106
}
107107

108-
pub async fn run(self) -> Result<Self, Error> {
109-
self.run_inner(false).await
108+
pub async fn run(self) -> Result<(), Error> {
109+
self.run_inner(false).await.map(|_| ())
110110
}
111111

112112
async fn run_inner(mut self, break_on_restart: bool) -> Result<Self, Error> {

0 commit comments

Comments
 (0)