File tree Expand file tree Collapse file tree 2 files changed +3
-1112
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1112
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ import {
2121 startRequestSpan ,
2222} from "./lib/tracing" ;
2323import { assistant } from "./routes/assistant" ;
24- // import { customSQL } from './routes/custom-sql';
2524import { exportRoute } from "./routes/export" ;
2625import { health } from "./routes/health" ;
2726import { publicApi } from "./routes/public" ;
@@ -112,10 +111,11 @@ const app = new Elysia()
112111 "/rpc/*" ,
113112 async ( { request, store } ) => {
114113 try {
115- // Run RPC handler within the active trace context if available
114+ const headers = new Headers ( request . headers ) ;
115+
116116 const handler = async ( ) => {
117117 const rpcContext = await createRPCContext ( {
118- headers : request . headers ,
118+ headers,
119119 } ) ;
120120 const { response } = await rpcHandler . handle ( request , {
121121 prefix : "/rpc" ,
You can’t perform that action at this time.
0 commit comments