File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -288,19 +288,19 @@ type Request struct {
288
288
}
289
289
290
290
// Elapsed duration since request was started
291
- func (r Request ) Elapsed () time.Duration {
291
+ func (r * Request ) Elapsed () time.Duration {
292
292
return time .Since (r .CreatedAt )
293
293
}
294
294
295
295
// Run the handler and capture any error. Returns the response or the error
296
296
// that should be returned to the caller
297
- func (r Request ) Run () (msg proto.Message , replyError * Error ) {
297
+ func (r * Request ) Run () (msg proto.Message , replyError * Error ) {
298
298
r .StartedAt = time .Now ()
299
299
ctx := r .Context
300
300
if r .StreamedReply () {
301
301
ctx = r .StreamContext
302
302
}
303
- ctx = context .WithValue (ctx , RequestContextKey , & r )
303
+ ctx = context .WithValue (ctx , RequestContextKey , r )
304
304
msg , replyError = CaptureErrors (
305
305
func () (proto.Message , error ) {
306
306
return r .Handler (ctx )
@@ -381,7 +381,7 @@ func (r *Request) setupStreamedReply() {
381
381
}
382
382
383
383
// StreamedReply returns true if the request reply is streamed
384
- func (r Request ) StreamedReply () bool {
384
+ func (r * Request ) StreamedReply () bool {
385
385
return r .isStreamedReply
386
386
}
387
387
You can’t perform that action at this time.
0 commit comments