Skip to content

Commit

Permalink
fix metadata access path
Browse files Browse the repository at this point in the history
  • Loading branch information
solanoepalacio committed Oct 26, 2023
1 parent af0e27d commit 3766f57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion relayer/rpc/fail-fast-grpc-transport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class TimeoutableTransport implements pkg.grpc.Transport {
responseCallback(response: http.IncomingMessage): void {
const headers = this.filterHeadersForUndefined(response.headers);
// @ts-ignore (typing problem with @improbable-eng/grpc-web that they won't fix due to deprecation)
this.options.onHeaders(new grpc.Metadata(headers), response.statusCode);
this.options.onHeaders(new pkg.grpc.Metadata(headers), response.statusCode);
response.on("data", chunk => {
this.options.onChunk(this.toArrayBuffer(chunk));
});
Expand Down

0 comments on commit 3766f57

Please sign in to comment.