Skip to content

Commit bae1011

Browse files
Google APIscopybara-github
authored andcommitted
1 parent db8f3aa commit bae1011

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

  • google/example/endpointsapis/goapp

google/example/endpointsapis/goapp/main.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,9 @@ func report(w http.ResponseWriter, r *http.Request, name string, responseCode in
9595
Time: received.UTC().Format(time.RFC3339),
9696
},
9797
Response: &servicecontrol.Response{
98-
Time: time.Now().UTC().Format(time.RFC3339),
99-
Code: responseCode,
100-
Headers: map[string]string{
101-
"x-backend-latency": "0.007",
102-
},
98+
Time: time.Now().UTC().Format(time.RFC3339),
99+
Code: responseCode,
100+
BackendLatency: time.Duration(70) * time.Millisecond,
103101
},
104102
Destination: &servicecontrol.Peer{
105103
RegionCode: "us-central1",

0 commit comments

Comments
 (0)