Skip to content
Snippets Groups Projects
Commit c5876ee1 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-6354 rename consisting -> consistent

parent 5b4678ff
No related branches found
No related tags found
No related merge requests found
...@@ -4,7 +4,7 @@ import io.grpc.stub.AbstractStub; ...@@ -4,7 +4,7 @@ import io.grpc.stub.AbstractStub;
import lombok.Builder; import lombok.Builder;
@Builder @Builder
class ConsistingStub<T extends AbstractStub<?>> implements ManagableStub<T> { class ConsistentStub<T extends AbstractStub<?>> implements ManagableStub<T> {
private T stub; private T stub;
......
...@@ -136,12 +136,12 @@ public class VorgangManagerServerResolver { ...@@ -136,12 +136,12 @@ public class VorgangManagerServerResolver {
var channelName = getChannelName(organisationsEinheitId); var channelName = getChannelName(organisationsEinheitId);
var stub = stubFactory.createStub(stubClass, createChannelByName(channelName)); var stub = stubFactory.createStub(stubClass, createChannelByName(channelName));
stub = applyStubTransformers(stub, channelName); stub = applyStubTransformers(stub, channelName);
return buildConsistingStub(stub); return buildConsistentStub(stub);
} }
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
private <T extends AbstractStub<?>> ConsistingStub<T> buildConsistingStub(AbstractStub<?> stub) { private <T extends AbstractStub<?>> ConsistentStub<T> buildConsistentStub(AbstractStub<?> stub) {
return ConsistingStub.<T>builder().stub((T) stub).build(); return ConsistentStub.<T>builder().stub((T) stub).build();
} }
String getChannelName(Optional<String> organisationsEinheitId) { String getChannelName(Optional<String> organisationsEinheitId) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment