Skip to content
This repository has been archived by the owner on Dec 13, 2024. It is now read-only.

Commit

Permalink
Update to use simplified RemotingClient API
Browse files Browse the repository at this point in the history
  • Loading branch information
knutwannheden committed Jun 11, 2024
1 parent d335b5e commit 871585a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/main/java/org/openrewrite/csharp/FindClass.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,7 @@ public J.CompilationUnit visitCompilationUnit(J.CompilationUnit cu, ExecutionCon

private J.CompilationUnit runRecipe(J.CompilationUnit document, ExecutionContext ctx) {
RemotingClient remotingClient = getRemotingClient(ctx);
return remotingClient.runRecipe(getRemoteDescriptor(), document, (senderContext, before) -> {
// FIXME transfer these markers somehow
senderContext.sendTree(document.withMarkers(document.getMarkers().removeByType(JavaSourceSet.class).removeByType(GitProvenance.class)), before);
}, receiverContext -> receiverContext.receiveTree(document));
return remotingClient.runRecipe(getRemoteDescriptor(), document.withMarkers(document.getMarkers().removeByType(JavaSourceSet.class).removeByType(GitProvenance.class)));
}

private RemotingClient getRemotingClient(ExecutionContext ctx) {
Expand Down

0 comments on commit 871585a

Please sign in to comment.