From 3766f5789c029079670cdd2a69eec9e39ad977ec Mon Sep 17 00:00:00 2001 From: solanoe Date: Wed, 25 Oct 2023 23:54:29 -0300 Subject: [PATCH] fix metadata access path --- relayer/rpc/fail-fast-grpc-transport.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/relayer/rpc/fail-fast-grpc-transport.ts b/relayer/rpc/fail-fast-grpc-transport.ts index ef5915f2..e38406e1 100644 --- a/relayer/rpc/fail-fast-grpc-transport.ts +++ b/relayer/rpc/fail-fast-grpc-transport.ts @@ -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)); });