Skip to content
This repository was archived by the owner on Sep 26, 2023. It is now read-only.

Commit 19a77a4

Browse files
authored
fix: call ResponseMetadataHanlder#onTrailers before calling onClose (#1549)
1 parent d5c10c6 commit 19a77a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gax-grpc/src/main/java/com/google/api/gax/grpc/GrpcMetadataHandlerInterceptor.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ public void onHeaders(Metadata headers) {
7373

7474
@Override
7575
public void onClose(Status status, Metadata trailers) {
76-
super.onClose(status, trailers);
7776
metadataHandler.onTrailers(trailers);
77+
super.onClose(status, trailers);
7878
}
7979
};
8080
super.start(forwardingResponseListener, headers);

0 commit comments

Comments
 (0)