File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -105,13 +105,6 @@ func (g Gateway) handleHTTPServiceRequest(
105105 dataReporter : g .DataReporter ,
106106 }
107107
108- // Initialize the GatewayRequestContext struct using the HTTP request.
109- // e.g. extract the target service ID from the HTTP request.
110- err := gatewayRequestCtx .InitFromHTTPRequest (httpReq )
111- if err != nil {
112- return
113- }
114-
115108 defer func () {
116109 // Write the user-facing HTTP response.
117110 gatewayRequestCtx .WriteHTTPUserResponse (responseWriter )
@@ -120,6 +113,13 @@ func (g Gateway) handleHTTPServiceRequest(
120113 gatewayRequestCtx .BroadcastAllObservations ()
121114 }()
122115
116+ // Initialize the GatewayRequestContext struct using the HTTP request.
117+ // e.g. extract the target service ID from the HTTP request.
118+ err := gatewayRequestCtx .InitFromHTTPRequest (httpReq )
119+ if err != nil {
120+ return
121+ }
122+
123123 // TODO_CHECK_IF_DONE(@adshmh): Pass the context with deadline to QoS once it can handle deadlines.
124124 // Build the QoS context for the target service ID using the HTTP request's payload.
125125 err = gatewayRequestCtx .BuildQoSContextFromHTTP (httpReq )
You can’t perform that action at this time.
0 commit comments