Skip to content

Commit

Permalink
fix: streams cancellation error (#18)
Browse files Browse the repository at this point in the history
Co-authored-by: segfaultdoctor
  • Loading branch information
zhelezkov authored Jul 2, 2024
1 parent 2063aa6 commit 77c9d8f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/sdk/block-engine/searcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export class SearcherClient {
errorCallback(new Error(`Stream error: ${e.message}`));
});

return stream.cancel;
return () => stream.cancel();
}

/**
Expand Down
6 changes: 3 additions & 3 deletions src/sdk/geyser/geyser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export class GeyserClient {
errorCallback(new Error(`Stream error: ${e.message}`))
);

return stream.cancel;
return () => stream.cancel();
}

/**
Expand Down Expand Up @@ -102,7 +102,7 @@ export class GeyserClient {
errorCallback(new Error(`Stream error: ${e.message}`))
);

return stream.cancel;
return () => stream.cancel();
}

/**
Expand Down Expand Up @@ -130,7 +130,7 @@ export class GeyserClient {
errorCallback(new Error(`Stream error: ${e.message}`))
);

return stream.cancel;
return () => stream.cancel();
}
}

Expand Down

0 comments on commit 77c9d8f

Please sign in to comment.