Skip to content

Commit

Permalink
Adding DecodingService Decorator to ArmeriaService (#1057)
Browse files Browse the repository at this point in the history
  • Loading branch information
zarna1parekh authored Sep 3, 2024
1 parent 651b99f commit 800dbd5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import com.linecorp.armeria.server.ServerBuilder;
import com.linecorp.armeria.server.brave.BraveService;
import com.linecorp.armeria.server.docs.DocService;
import com.linecorp.armeria.server.encoding.DecodingService;
import com.linecorp.armeria.server.encoding.EncodingService;
import com.linecorp.armeria.server.grpc.GrpcService;
import com.linecorp.armeria.server.grpc.GrpcServiceBuilder;
Expand Down Expand Up @@ -123,7 +124,7 @@ public boolean begin(TraceContext context, MutableSpan span, TraceContext parent
}

public Builder withAnnotatedService(Object service) {
serverBuilder.annotatedService(service);
serverBuilder.annotatedService(service, DecodingService.newDecorator());
return this;
}

Expand Down

0 comments on commit 800dbd5

Please sign in to comment.