Skip to content

Commit

Permalink
refactor: replace RestSseElementType with RestStreamElementType
Browse files Browse the repository at this point in the history
  • Loading branch information
manusa committed Jun 7, 2023
1 parent b30f4ee commit b147bb1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import io.smallrye.mutiny.Multi;
import io.smallrye.mutiny.converters.multi.MultiRxConverters;
import io.vertx.core.http.HttpServerResponse;
import org.jboss.resteasy.reactive.RestSseElementType;
import org.jboss.resteasy.reactive.RestStreamElementType;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand Down Expand Up @@ -94,7 +94,7 @@ public Pod update(@PathParam("namespace") String namespace, @PathParam("name") S

@GET
@Produces(MediaType.SERVER_SENT_EVENTS)
@RestSseElementType(MediaType.APPLICATION_JSON) // TODO Replaced by RestStreamElementType in next Quarkus version bump
@RestStreamElementType(MediaType.APPLICATION_JSON)
@Path("/{namespace}/{name}/logs/{container}")
public void getLogs(
@Context HttpServerResponse response, @Context Sse sse, @Context SseEventSink sseEventSink,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import io.quarkus.runtime.ShutdownEvent;
import io.quarkus.runtime.annotations.RegisterForReflection;
import io.vertx.core.http.HttpServerResponse;
import org.jboss.resteasy.reactive.RestSseElementType;
import org.jboss.resteasy.reactive.RestStreamElementType;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand Down Expand Up @@ -60,7 +60,7 @@ void onShutdown(@Observes ShutdownEvent event) {

@GET
@Produces(MediaType.SERVER_SENT_EVENTS)
@RestSseElementType(MediaType.APPLICATION_JSON) // TODO Replaced by RestStreamElementType in next Quarkus version bump
@RestStreamElementType(MediaType.APPLICATION_JSON)
public void get(@Context HttpServerResponse response, @Context Sse sse, @Context SseEventSink sseEventSink) {
watchService.newWatch(response).runSubscriptionOn(subscribeExecutor).subscribe().with(we -> {
try {
Expand Down

0 comments on commit b147bb1

Please sign in to comment.