Skip to content
Permalink
Browse files
fix: call ResponseMetadataHanlder#onTrailers before calling onClose (#…
  • Loading branch information
mutianf committed Nov 3, 2021
1 parent d5c10c6 commit 19a77a4f6c62e84bba4879690992bbc494730d23
Showing with 1 addition and 1 deletion.
  1. +1 −1 gax-grpc/src/main/java/com/google/api/gax/grpc/GrpcMetadataHandlerInterceptor.java
@@ -73,8 +73,8 @@ public void onHeaders(Metadata headers) {

@Override
public void onClose(Status status, Metadata trailers) {
super.onClose(status, trailers);
metadataHandler.onTrailers(trailers);
super.onClose(status, trailers);
}
};
super.start(forwardingResponseListener, headers);

0 comments on commit 19a77a4

Please sign in to comment.